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

Author: Corbin Simpson <mostawesomed...@gmail.com>
Date:   Fri Mar  6 13:31:13 2009 -0800

r300-gallium: Make sure registers are inside BEGIN/END CS.

---

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

diff --git a/src/gallium/drivers/r300/r300_surface.c 
b/src/gallium/drivers/r300/r300_surface.c
index cec64ec..92ddace 100644
--- a/src/gallium/drivers/r300/r300_surface.c
+++ b/src/gallium/drivers/r300/r300_surface.c
@@ -220,6 +220,8 @@ static void r300_surface_fill(struct pipe_context* pipe,
     }
     END_CS;
 
+    BEGIN_CS(29);
+
     /* Pixel scissors */
     OUT_CS_REG_SEQ(R300_SC_SCISSORS_TL, 2);
     OUT_CS((x << R300_SCISSORS_X_SHIFT) | (y << R300_SCISSORS_Y_SHIFT));
@@ -230,7 +232,6 @@ static void r300_surface_fill(struct pipe_context* pipe,
         ((h * 6) & R300_POINTSIZE_Y_MASK) |
         ((w * 6) << R300_POINTSIZE_X_SHIFT));
 
-    BEGIN_CS(24);
     /* Flush colorbuffer and blend caches. */
     OUT_CS_REG(R300_RB3D_DSTCACHE_CTLSTAT,
         R300_RB3D_DSTCACHE_CTLSTAT_DC_FLUSH_FLUSH_DIRTY_3D |

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to