Mesa (master): r300: fix wrong assertion

Maciej Cencora osiris at kemper.freedesktop.org
Fri Dec 11 16:01:10 PST 2009


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

Author: Maciej Cencora <m.cencora at gmail.com>
Date:   Sun Nov  8 21:44:24 2009 +0100

r300: fix wrong assertion

---

 src/mesa/drivers/dri/r300/r300_cmdbuf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/r300/r300_cmdbuf.c b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
index 4b0005e..e1c33bb 100644
--- a/src/mesa/drivers/dri/r300/r300_cmdbuf.c
+++ b/src/mesa/drivers/dri/r300/r300_cmdbuf.c
@@ -332,7 +332,7 @@ void r300_emit_cb_setup(struct r300_context *r300,
     uint32_t cbpitch = pitch / cpp;
     uint32_t dw = 6;
 
-    assert(offset % 256 == 0);
+    assert(offset % 32 == 0);
 
     switch (format) {
         case MESA_FORMAT_RGB565:



More information about the mesa-commit mailing list