virgl: fix undefined shift to use unsigned.
authorDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2018 23:07:35 +0000 (09:07 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Nov 2018 23:09:31 +0000 (09:09 +1000)
Ported from virglrenderer.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/virgl/virgl_protocol.h

index 3373121bf7494e173237418ca0e44f6b1ee12450..7c9ea9f7254a94e01c7392cedcd5be9790db13c1 100644 (file)
@@ -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))