r300g: Immediate mode won't work with SW TCL right now.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 12 May 2010 17:09:50 +0000 (10:09 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Wed, 12 May 2010 17:16:19 +0000 (10:16 -0700)
This could be done later of course. SW TCL should have a much different
threshold because it's much more worth it.

src/gallium/drivers/r300/r300_render.c

index 4d7699793e367e5952ed8b95a5005fbcc6b27bbe..db71960e7ec8d624667bf0a650c3074b6c44585a 100644 (file)
@@ -198,7 +198,15 @@ static boolean immd_is_good_idea(struct r300_context *r300,
     unsigned vertex_element_count = r300->velems->count;
     unsigned i, vbi;
 
-    if (count > 10 || DBG_ON(r300, DBG_NO_IMMD)) {
+    if (DBG_ON(r300, DBG_NO_IMMD)) {
+        return FALSE;
+    }
+
+    if (r300->draw) {
+        return FALSE;
+    }
+
+    if (count > 10) {
         return FALSE;
     }