From: Dave Airlie Date: Wed, 28 Nov 2018 23:07:35 +0000 (+1000) Subject: virgl: fix undefined shift to use unsigned. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8eb8be3f54c9d1d02d51a5b508d04777b5ff3f13;p=mesa.git virgl: fix undefined shift to use unsigned. Ported from virglrenderer. Signed-off-by: Dave Airlie --- diff --git a/src/gallium/drivers/virgl/virgl_protocol.h b/src/gallium/drivers/virgl/virgl_protocol.h index 3373121bf74..7c9ea9f7254 100644 --- a/src/gallium/drivers/virgl/virgl_protocol.h +++ b/src/gallium/drivers/virgl/virgl_protocol.h @@ -223,7 +223,7 @@ enum virgl_context_cmd { #define VIRGL_OBJ_SHADER_OFFSET_VAL(x) (((x) & 0x7fffffff) << 0) /* start contains full length in VAL - also implies continuations */ /* continuation contains offset in VAL */ -#define VIRGL_OBJ_SHADER_OFFSET_CONT (0x1 << 31) +#define VIRGL_OBJ_SHADER_OFFSET_CONT (0x1u << 31) #define VIRGL_OBJ_SHADER_NUM_TOKENS 4 #define VIRGL_OBJ_SHADER_SO_NUM_OUTPUTS 5 #define VIRGL_OBJ_SHADER_SO_STRIDE(x) (6 + (x))