Mesa (master): r300g: specify point/line/ triangle have stuffed texture coord

Cooper Yuan cooperyuan at kemper.freedesktop.org
Thu Sep 3 09:08:05 UTC 2009


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

Author: Cooper Yuan <cooperyuan at gmail.com>
Date:   Thu Sep  3 17:06:18 2009 +0800

r300g: specify point/line/triangle have stuffed texture coord

---

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

diff --git a/src/gallium/drivers/r300/r300_state_invariant.c b/src/gallium/drivers/r300/r300_state_invariant.c
index 1e92374..7d822fe 100644
--- a/src/gallium/drivers/r300/r300_state_invariant.c
+++ b/src/gallium/drivers/r300/r300_state_invariant.c
@@ -38,7 +38,9 @@ void r300_emit_invariant_state(struct r300_context* r300)
 
     /*** Graphics Backend (GB) ***/
     /* Various GB enables */
-    OUT_CS_REG(R300_GB_ENABLE, 0x0);
+    OUT_CS_REG(R300_GB_ENABLE, R300_GB_POINT_STUFF_ENABLE |
+                               R300_GB_LINE_STUFF_ENABLE  |
+                               R300_GB_TRIANGLE_STUFF_ENABLE);
     /* 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.




More information about the mesa-commit mailing list