gallium/freedreno: move cast to avoid integer overflow
authorEric Engestrom <eric@engestrom.ch>
Sat, 30 Jul 2016 00:33:56 +0000 (01:33 +0100)
committerRob Clark <robdclark@gmail.com>
Sat, 30 Jul 2016 13:23:42 +0000 (09:23 -0400)
commita63bac9271cf4984b4b8c0158e99fffa7f78c8bb
tree784931e643ef950e0836783f9950c10241fe022e
parent3563c4d16138360fd8756576e0c9c825ed6cec86
gallium/freedreno: move cast to avoid integer overflow

Previously, the bitshift would be performed on a simple int (32 bits on
most systems), overflow, and then be cast to 64 bits.

CovID: 1362461
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a2xx/fd2_compiler.c