[Mesa-dev] [PATCH 20/30] r600: introduce defines for image resources

Dave Airlie airlied at gmail.com
Thu Mar 31 07:03:49 UTC 2016


From: Dave Airlie <airlied at redhat.com>

We need to store two resources per image for the pixel shader.

The first resource is for the immediate RAT result buffer,
the second resource is for the actual image resource for getting
RESQ correct.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/gallium/drivers/r600/r600_pipe.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h
index c05ac03..9133698 100644
--- a/src/gallium/drivers/r600/r600_pipe.h
+++ b/src/gallium/drivers/r600/r600_pipe.h
@@ -40,6 +40,14 @@
 
 #define R600_MAX_VIEWPORTS 16
 
+/*
+ * ranges reserved for images on evergreen
+ * first set for the immediate buffers,
+ * second for the actual resources for RESQ.
+ */
+#define R600_IMAGE_IMMED_RESOURCE_OFFSET 160
+#define R600_IMAGE_REAL_RESOURCE_OFFSET 168
+
 /* read caches */
 #define R600_CONTEXT_INV_VERTEX_CACHE		(R600_CONTEXT_PRIVATE_FLAG << 0)
 #define R600_CONTEXT_INV_TEX_CACHE		(R600_CONTEXT_PRIVATE_FLAG << 1)
-- 
2.5.0



More information about the mesa-dev mailing list