gallium/radeon: increase priority for shader binaries
authorMarek Olšák <marek.olsak@amd.com>
Wed, 17 Aug 2016 12:24:26 +0000 (14:24 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 26 Aug 2016 13:50:10 +0000 (15:50 +0200)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/drivers/radeonsi/si_debug.c

index cbab406db88fc28c04acccf612e456d16718350a..f4e37733e2f19154824e355d6fddffa5b18fe4a7 100644 (file)
@@ -186,7 +186,6 @@ enum radeon_bo_priority {
     RADEON_PRIO_SDMA_TEXTURE,
 
     RADEON_PRIO_CP_DMA = 12,
-    RADEON_PRIO_SHADER_BINARY,
 
     RADEON_PRIO_CONST_BUFFER = 16,
     RADEON_PRIO_DESCRIPTORS,
@@ -214,6 +213,7 @@ enum radeon_bo_priority {
     RADEON_PRIO_CMASK = 52,
     RADEON_PRIO_DCC,
     RADEON_PRIO_HTILE,
+    RADEON_PRIO_SHADER_BINARY, /* the hw can't hide instruction cache misses */
 
     RADEON_PRIO_SHADER_RINGS = 56,
 
index 4b500cfffa0e315b2bcde614333486c33679dc2d..7e75d3ff99bcd80d668a4db6fcccc846fbbcd97e 100644 (file)
@@ -553,7 +553,6 @@ static const char *priority_to_string(enum radeon_bo_priority priority)
                ITEM(SDMA_BUFFER),
                ITEM(SDMA_TEXTURE),
                ITEM(CP_DMA),
-               ITEM(SHADER_BINARY),
                ITEM(CONST_BUFFER),
                ITEM(DESCRIPTORS),
                ITEM(BORDER_COLORS),
@@ -571,6 +570,7 @@ static const char *priority_to_string(enum radeon_bo_priority priority)
                ITEM(CMASK),
                ITEM(DCC),
                ITEM(HTILE),
+               ITEM(SHADER_BINARY),
                ITEM(SHADER_RINGS),
                ITEM(SCRATCH_BUFFER),
        };