glsl: add a few missing int64 constant propagation cases
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 17 Aug 2017 02:18:39 +0000 (22:18 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 18 Aug 2017 06:26:16 +0000 (02:26 -0400)
commit9c8f017f77188d9048132a30d31f18b9690cbe04
treeea99a53e4e733e63bdf170455582e4738fb67900
parentc03eefdf843098c93c8e95856e0e482a60915590
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 <imirkin@alum.mit.edu>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
src/compiler/glsl/ir_constant_expression.cpp
src/compiler/glsl/opt_constant_propagation.cpp