glsl: fixup u64-warning
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 5 Aug 2019 15:37:15 +0000 (17:37 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 15 Aug 2019 18:23:13 +0000 (20:23 +0200)
commitb355eef92053feaa8254345a3359ff14555dd52f
tree80ee0d1dcd50525cd7c286c1e6a8c5000d31b78f
parentf741de236b5fa5522d8749a4b3e6d994fb98c630
glsl: fixup u64-warning

Similarly to the unsigned-version, we need to first cast the result to a
suiting integer before negating the number, otherwise we'll trigger a
warning.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/glsl/ir_expression_operation.py