r300: fix UB caused by 1 << 31 and 2 << 30
authorFilip Gawin <filip.gawin@zoho.com>
Sat, 2 Oct 2021 16:28:17 +0000 (18:28 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 5 Oct 2021 19:07:27 +0000 (19:07 +0000)
commita3f553beab095ba06db934b33af8c9559bf329b7
tree2f98f471308733646d217bbb6c5ed36db1f77a27
parenteed0fc4caf27795858ed758c228e55b2ef74e518
r300: fix UB caused by 1 << 31 and 2 << 30

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13158>
src/gallium/drivers/r300/compiler/r3xx_vertprog.c
src/gallium/drivers/r300/compiler/radeon_compiler.c
src/gallium/drivers/r300/compiler/radeon_program_tex.c
src/gallium/drivers/r300/r300_emit.c
src/gallium/drivers/r300/r300_reg.h
src/gallium/drivers/r300/r300_state_derived.c
src/gallium/drivers/r300/r300_tgsi_to_rc.c