Mesa (master): r300g: Disable MSPOS registers for glisse' s CS security checker.

Corbin Simpson csimpson at kemper.freedesktop.org
Wed Jul 8 19:01:50 UTC 2009


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

Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date:   Wed Jul  8 11:55:27 2009 -0700

r300g: Disable MSPOS registers for glisse's CS security checker.

These will come back in someday, when we can properly use them.

---

 src/gallium/drivers/r300/r300_state_invariant.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state_invariant.c b/src/gallium/drivers/r300/r300_state_invariant.c
index e438114..63a0c95 100644
--- a/src/gallium/drivers/r300/r300_state_invariant.c
+++ b/src/gallium/drivers/r300/r300_state_invariant.c
@@ -34,14 +34,17 @@ void r300_emit_invariant_state(struct r300_context* r300)
     struct r300_capabilities* caps = r300_screen(r300->context.screen)->caps;
     CS_LOCALS(r300);
 
-    BEGIN_CS(26 + (caps->has_tcl ? 2: 0));
+    BEGIN_CS(22 + (caps->has_tcl ? 2: 0));
 
     /*** Graphics Backend (GB) ***/
     /* Various GB enables */
     OUT_CS_REG(R300_GB_ENABLE, 0x0);
-    /* Subpixel multisampling for AA */
-    OUT_CS_REG(R300_GB_MSPOS0, 0x66666666);
-    OUT_CS_REG(R300_GB_MSPOS1, 0x6666666);
+    /* Subpixel multisampling for AA
+     * These are commented out because glisse's CS checker doesn't like them.
+     * I presume these will be re-enabled later.
+     * OUT_CS_REG(R300_GB_MSPOS0, 0x66666666);
+     * OUT_CS_REG(R300_GB_MSPOS1, 0x6666666);
+     */
     /* Source of fog depth */
     OUT_CS_REG(R300_GB_SELECT, R300_GB_FOG_SELECT_1_1_W);
     /* AA enable */




More information about the mesa-commit mailing list