From 604d89c2d10f4d40bbdf06abded60b408547fe9f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 11 Apr 2019 20:37:43 +1000 Subject: [PATCH] llvmpipe: fix undefined shift 1 << 31. Pointed out by coverity. Reviewed-by: Eric Engestrom Reviewed-by: Roland Scheidegger --- src/gallium/drivers/llvmpipe/lp_setup_point.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.30.2