diff options
author | Ilia Mirkin <[email protected]> | 2017-08-16 22:18:39 -0400 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2017-08-18 02:26:16 -0400 |
commit | 9c8f017f77188d9048132a30d31f18b9690cbe04 (patch) | |
tree | ea99a53e4e733e63bdf170455582e4738fb67900 /src/compiler/glsl/opt_constant_propagation.cpp | |
parent | c03eefdf843098c93c8e95856e0e482a60915590 (diff) |
glsl: add a few missing int64 constant propagation cases
Fixes KHR-GL45.shader_ballot_tests.ShaderBallotAvailability, which
causes some silly swizzles to appear, triggering this optimization to
get hit.
Signed-off-by: Ilia Mirkin <[email protected]>
Reviewed-by: Dave Airlie <[email protected]>
Cc: [email protected]
Diffstat (limited to 'src/compiler/glsl/opt_constant_propagation.cpp')
-rw-r--r-- | src/compiler/glsl/opt_constant_propagation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/glsl/opt_constant_propagation.cpp b/src/compiler/glsl/opt_constant_propagation.cpp index 52e3937bb11..05dc71efb72 100644 --- a/src/compiler/glsl/opt_constant_propagation.cpp +++ b/src/compiler/glsl/opt_constant_propagation.cpp @@ -238,6 +238,12 @@ ir_constant_propagation_visitor::constant_propagation(ir_rvalue **rvalue) { case GLSL_TYPE_BOOL: data.b[i] = found->constant->value.b[rhs_channel]; break; + case GLSL_TYPE_UINT64: + data.u64[i] = found->constant->value.u64[rhs_channel]; + break; + case GLSL_TYPE_INT64: + data.i64[i] = found->constant->value.i64[rhs_channel]; + break; default: assert(!"not reached"); break; |