Re: [Mesa-dev] [PATCH mesa] gallium/freedreno: move cast to avoid integer overflow

2016-07-29 Thread Rob Clark
On Fri, Jul 29, 2016 at 8:33 PM, Eric Engestrom wrote: > Previously, the bitshift would be performed on a simple int (32 bits on > most systems), overflow, and then be cast to 64 bits. and actually 32b on 100% of systems that had a2xx ;-) I've picked this up locally and will push soon.. thanks

[Mesa-dev] [PATCH mesa] gallium/freedreno: move cast to avoid integer overflow

2016-07-29 Thread Eric Engestrom
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 --- src/gallium/drivers/freedreno/a2xx/fd2_compiler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a