Mesa (master): r300-gallium: Add SC_CLIP_RULE to clear.
Corbin Simpson
csimpson at kemper.freedesktop.org
Mon Feb 16 11:17:09 UTC 2009
Module: Mesa
Branch: master
Commit: 82722a75c5d55bb8a553b525b4a1e481a7044718
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=82722a75c5d55bb8a553b525b4a1e481a7044718
Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date: Mon Feb 16 02:52:47 2009 -0800
r300-gallium: Add SC_CLIP_RULE to clear.
This is a register that is in r300_demo but not r300_surface, so adding it in
to see if it helps.
---
src/gallium/drivers/r300/r300_surface.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/r300/r300_surface.c b/src/gallium/drivers/r300/r300_surface.c
index 8c6b336..0a47101 100644
--- a/src/gallium/drivers/r300/r300_surface.c
+++ b/src/gallium/drivers/r300/r300_surface.c
@@ -194,6 +194,9 @@ static void r300_surface_fill(struct pipe_context* pipe,
((h * 6) & R300_POINTSIZE_Y_MASK) |
((w * 6) << R300_POINTSIZE_X_SHIFT));
+ /* XXX */
+ OUT_CS_REG(R300_SC_CLIP_RULE, 0xaaaa);
+
/* Pixel scissors */
OUT_CS_REG_SEQ(R300_SC_SCISSORS_TL, 2);
OUT_CS((x << R300_SCISSORS_X_SHIFT) | (y << R300_SCISSORS_Y_SHIFT));
More information about the mesa-commit
mailing list