r300g: fix hardlock caused by an incompatible vertex format
authorMarek Olšák <maraeo@gmail.com>
Mon, 7 Jun 2010 20:10:47 +0000 (22:10 +0200)
committerMarek Olšák <maraeo@gmail.com>
Mon, 7 Jun 2010 20:11:58 +0000 (22:11 +0200)
The drivers aborts instead, I am working on a real fix...

src/gallium/drivers/r300/r300_defines.h

index 83c9ec7e399f0def33ebe2ca39d1e80764310ae1..565a2f3e0e96f4088e067f1cb58aa3cbf603c1a7 100644 (file)
@@ -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