diff options
author | Nicolai Hähnle <[email protected]> | 2017-03-30 08:54:46 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-03-31 07:56:25 +0200 |
commit | 44125b29d1924e3a24ee86c022c69749aaa38e07 (patch) | |
tree | cf4720cf8146557d283f31b055da8324594298a1 /src/compiler/glsl/builtin_functions.cpp | |
parent | 3535b87a1a98350bd300b6c357a1709492c6c200 (diff) |
glsl: fix clockARB builtin function
The underlying intrinsic is defined to always have a uvec2 return type.
Reviewed-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/glsl/builtin_functions.cpp')
-rw-r--r-- | src/compiler/glsl/builtin_functions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |