i965/vs: Don't assertion fail on vertex texturing.
authorEric Anholt <eric@anholt.net>
Fri, 12 Aug 2011 12:32:25 +0000 (05:32 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Aug 2011 20:04:43 +0000 (13:04 -0700)
The linker will reject the program, but we need to survive until then.
Fixes abort in glsl1-2D Texture lookup with explicit lod (Vertex
shader)

src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index fc75cc35172591d0dcd69f1f88c15db0469e374f..d03fbff27fcbc96cbb629cd4d758c2551a87602f 100644 (file)
@@ -1554,7 +1554,12 @@ vec4_visitor::visit(ir_call *ir)
 void
 vec4_visitor::visit(ir_texture *ir)
 {
-   assert(!"not reached");
+   /* FINISHME: Implement vertex texturing.
+    *
+    * With 0 vertex samplers available, the linker will reject
+    * programs that do vertex texturing, but after our visitor has
+    * run.
+    */
 }
 
 void