diff options
author | Dave Airlie <[email protected]> | 2018-11-29 09:07:35 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2018-11-29 09:09:31 +1000 |
commit | 8eb8be3f54c9d1d02d51a5b508d04777b5ff3f13 (patch) | |
tree | e8c023e8789b51f89f57aee8e694e0c1c2f3dda1 /src/gallium | |
parent | 2ddd44d941648d49dc0d917e03a579baec3590d9 (diff) |
virgl: fix undefined shift to use unsigned.
Ported from virglrenderer.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_protocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |