gallium: fix various undefined left shifts into sign bit
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 30 Apr 2016 02:56:25 +0000 (21:56 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Sat, 7 May 2016 21:46:59 +0000 (16:46 -0500)
commit62b7958cd0ec03ff1e15144f0104728458621d1d
treed330bc5025886e1cfdd7bccd252e45fe2b98a6d7
parent945c6887ab43a98a6e042841b2fb547aaef250e2
gallium: fix various undefined left shifts into sign bit

Funnily enough, some of these were turned into a compile-time error by gcc
with -fsanitize=undefined ("initializer is not a constant").

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/util/u_pack_color.h
src/gallium/auxiliary/util/u_pstipple.c
src/gallium/drivers/softpipe/sp_quad_stipple.c
src/mesa/state_tracker/st_mesa_to_tgsi.c
src/mesa/state_tracker/st_program.c