Mesa (master): nvc0: warn about changing NVC0_CB_AUX_MP_INFO and NVC0_CB_AUX_DRAW_INFO

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Sep 22 15:51:24 UTC 2018


Module: Mesa
Branch: master
Commit: f580a895b1b113cf7903a64a7a031bf4fdcc5032
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f580a895b1b113cf7903a64a7a031bf4fdcc5032

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Thu Sep 20 18:39:06 2018 +0100

nvc0: warn about changing NVC0_CB_AUX_MP_INFO and NVC0_CB_AUX_DRAW_INFO

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nvc0/nvc0_context.h | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_context.h b/src/gallium/drivers/nouveau/nvc0/nvc0_context.h
index 77237a3c0a..b7cc415359 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_context.h
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_context.h
@@ -138,7 +138,9 @@
 #define NVC0_CB_AUX_SAMPLE_INFO     0x1a0 /* FP */
 /* 256 bytes, though only 64 bytes used before GM200 */
 #define NVC0_CB_AUX_SAMPLE_SIZE     (8 * 2 * 4 * 4)
-/* draw parameters (index bais, base instance, drawid) */
+/* draw parameters (index bias, base instance, drawid)
+ * be sure to update the indirect draw macros in com9097.mme when changing this
+ */
 #define NVC0_CB_AUX_DRAW_INFO       0x1a0 /* VP */
 /* 32 user buffers, at 4 32-bits integers each */
 #define NVC0_CB_AUX_BUF_INFO(i)     0x2a0 + (i) * 4 * 4
@@ -146,7 +148,9 @@
 /* 8 surfaces, at 16 32-bits integers each */
 #define NVC0_CB_AUX_SU_INFO(i)      0x4a0 + (i) * 16 * 4
 #define NVC0_CB_AUX_SU_SIZE         (NVC0_MAX_IMAGES * 16 * 4)
-/* 1 64-bits address and 1 32-bits sequence */
+/* 1 64-bits address and 1 32-bits sequence
+ * be sure to update the shaders in nvc0_query_hw_sm.c when changing this
+ */
 #define NVC0_CB_AUX_MP_INFO         0x6a0
 #define NVC0_CB_AUX_MP_SIZE         3 * 4
 /* 512 64-byte blocks for bindless image handles */




More information about the mesa-commit mailing list