radeonsi: fix undefined shift in macro definition
authorDave Airlie <airlied@redhat.com>
Tue, 18 Jun 2019 21:19:03 +0000 (07:19 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Jun 2019 22:32:36 +0000 (08:32 +1000)
Pointed out by coverity

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeonsi/si_perfcounter.c

index ad7f1eb3d995e3e3f20802b8601680a0c74ecfdb..75bd61730dac62e00070e4b586bb59934015dbd3 100644 (file)
@@ -126,7 +126,7 @@ static const unsigned si_pc_shader_type_bits[] = {
 /* Max counters per HW block */
 #define SI_QUERY_MAX_COUNTERS 16
 
-#define SI_PC_SHADERS_WINDOWING (1 << 31)
+#define SI_PC_SHADERS_WINDOWING (1u << 31)
 
 struct si_query_group {
        struct si_query_group *next;