Mesa (master): r300g: fix hardlock caused by an incompatible vertex format

Marek Olšák mareko at kemper.freedesktop.org
Mon Jun 7 13:12:27 PDT 2010


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Jun  7 22:10:47 2010 +0200

r300g: fix hardlock caused by an incompatible vertex format

The drivers aborts instead, I am working on a real fix...

---

 src/gallium/drivers/r300/r300_defines.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_defines.h b/src/gallium/drivers/r300/r300_defines.h
index 83c9ec7..565a2f3 100644
--- a/src/gallium/drivers/r300/r300_defines.h
+++ b/src/gallium/drivers/r300/r300_defines.h
@@ -30,7 +30,7 @@
 
 #define R300_RESOURCE_FLAG_TRANSFER     PIPE_RESOURCE_FLAG_DRV_PRIV
 
-#define R300_INVALID_FORMAT (~0)
+#define R300_INVALID_FORMAT 0xffff
 
 /* XXX: this is just a bandaid on larger problems in
  * r300_screen_buffer.h which doesn't seem to be fully ported to



More information about the mesa-commit mailing list