[Mesa-dev] [PATCH 4/4] gallium/radeon: assign the highest priority to scratch; make rings second

Marek Olšák maraeo at gmail.com
Thu Aug 11 20:25:08 UTC 2016


From: Marek Olšák <marek.olsak at amd.com>

just FYI, the kernel receives priority/4
---
 src/gallium/drivers/radeon/radeon_winsys.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeon/radeon_winsys.h b/src/gallium/drivers/radeon/radeon_winsys.h
index 8a98ebf..c65b9a4 100644
--- a/src/gallium/drivers/radeon/radeon_winsys.h
+++ b/src/gallium/drivers/radeon/radeon_winsys.h
@@ -190,40 +190,42 @@ enum radeon_bo_priority {
     RADEON_PRIO_INTERNAL_SHADER, /* fetch shader, etc. */
 
     RADEON_PRIO_CONST_BUFFER = 16,
     RADEON_PRIO_DESCRIPTORS,
     RADEON_PRIO_BORDER_COLORS,
 
     RADEON_PRIO_SAMPLER_BUFFER = 20,
     RADEON_PRIO_VERTEX_BUFFER,
 
     RADEON_PRIO_SHADER_RW_BUFFER = 24,
-    RADEON_PRIO_SCRATCH_BUFFER,
     RADEON_PRIO_COMPUTE_GLOBAL,
 
     RADEON_PRIO_SAMPLER_TEXTURE = 28,
     RADEON_PRIO_SHADER_RW_IMAGE,
 
     RADEON_PRIO_SAMPLER_TEXTURE_MSAA = 32,
 
     RADEON_PRIO_COLOR_BUFFER = 36,
 
     RADEON_PRIO_DEPTH_BUFFER = 40,
 
     RADEON_PRIO_COLOR_BUFFER_MSAA = 44,
 
     RADEON_PRIO_DEPTH_BUFFER_MSAA = 48,
 
     RADEON_PRIO_CMASK = 52,
     RADEON_PRIO_DCC,
     RADEON_PRIO_HTILE,
-    RADEON_PRIO_SHADER_RINGS,
+
+    RADEON_PRIO_SHADER_RINGS = 56,
+
+    RADEON_PRIO_SCRATCH_BUFFER = 60,
     /* 63 is the maximum value */
 };
 
 struct winsys_handle;
 struct radeon_winsys_ctx;
 
 struct radeon_winsys_cs_chunk {
     unsigned cdw;  /* Number of used dwords. */
     unsigned max_dw; /* Maximum number of dwords. */
     uint32_t *buf; /* The base pointer of the chunk. */
-- 
2.7.4



More information about the mesa-dev mailing list