summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorCharmaine Lee <[email protected]>2016-06-03 14:26:23 -0700
committerBrian Paul <[email protected]>2016-06-06 10:20:45 -0600
commit627e975896e0ec1b058c6acc071fdaecbb055ce6 (patch)
tree2ce47da3a33bf1d9c150c702b96a48437f0477f1 /src/mesa
parent304b5a14461ffd2d09cd3ba719da1c7b76966a9c (diff)
tgsi: fix mixed data type comparison in tgsi_point_sprite.c
Cast the unsigned semantic index to integer datatype before comparing to max_generic, otherwise, max_generic which is initialized to -1 will be converted to unsigned int before the comparison, causing a wrong semantic index to be assigned to a shader output. Fixes the assert running TurboCAD_gl.trace. (VMware bug 1667265) Also tested with glretrace, mesa demos pointblast, spriteblast and pointcoord. v2: use the original max_generic variable but add the (int) cast to the semantic index, as suggested by Brian. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
0 files changed, 0 insertions, 0 deletions