draw: vertex fetch can be validated too early leading to an assertion... disable
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 25 Mar 2008 18:15:58 +0000 (18:15 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 25 Mar 2008 18:15:58 +0000 (18:15 +0000)
src/gallium/auxiliary/draw/draw_vertex_fetch.c

index b56d85396de6f7adc0e8f4584414ccb33fc18d79..11f99babf654612dc5e6caf159fdd2d2ca755467 100644 (file)
@@ -314,7 +314,11 @@ static fetch_func get_fetch_func( enum pipe_format format )
       return NULL;             /* not sure why this is needed */
 
    default:
-      assert(0);
+      /* This can get hit because draw-state-validation is too eager,
+         and can jump in here validating stuff before the state tracker has set
+         up everything.
+      */
+      /* assert(0); */
       return NULL;
    }
 }