From 44125b29d1924e3a24ee86c022c69749aaa38e07 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 30 Mar 2017 08:54:46 +0200 Subject: [PATCH] glsl: fix clockARB builtin function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The underlying intrinsic is defined to always have a uvec2 return type. Reviewed-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/compiler/glsl/builtin_functions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/glsl/builtin_functions.cpp b/src/compiler/glsl/builtin_functions.cpp index e30509a4acd..683217d7a35 100644 --- a/src/compiler/glsl/builtin_functions.cpp +++ b/src/compiler/glsl/builtin_functions.cpp @@ -5947,7 +5947,7 @@ builtin_builder::_shader_clock(builtin_available_predicate avail, { MAKE_SIG(type, avail, 0); - ir_variable *retval = body.make_temp(type, "clock_retval"); + ir_variable *retval = body.make_temp(glsl_type::uvec2_type, "clock_retval"); body.emit(call(shader->symbols->get_function("__intrinsic_shader_clock"), retval, sig->parameters)); -- 2.30.2