aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-04-11 20:37:43 +1000
committerDave Airlie <[email protected]>2019-04-12 08:54:02 +1000
commit604d89c2d10f4d40bbdf06abded60b408547fe9f (patch)
tree5c06ce00e269f3f2fe8be77f5411622b39ecb544 /src
parent4690f9072828308bae59cfa549490e166fb60192 (diff)
llvmpipe: fix undefined shift 1 << 31.
Pointed out by coverity. Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_point.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_point.c b/src/gallium/drivers/llvmpipe/lp_setup_point.c
index 2192789bd4c..fc1d5ef6e36 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_point.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_point.c
@@ -251,7 +251,7 @@ setup_point_coefficients( struct lp_setup_context *setup,
* PIPE_MAX_SHADER_OUTPUTS bits.
*/
if (semantic_index < PIPE_MAX_SHADER_OUTPUTS &&
- (setup->sprite_coord_enable & (1 << semantic_index))) {
+ (setup->sprite_coord_enable & (1u << semantic_index))) {
for (i = 0; i < NUM_CHANNELS; i++) {
if (usage_mask & (1 << i)) {
texcoord_coef(setup, info, slot + 1, i,