From: Nicolai Hähnle Date: Thu, 30 Mar 2017 06:54:46 +0000 (+0200) Subject: glsl: fix clockARB builtin function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44125b29d1924e3a24ee86c022c69749aaa38e07;p=mesa.git glsl: fix clockARB builtin function The underlying intrinsic is defined to always have a uvec2 return type. Reviewed-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- 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));