softpipe: add missing calls to set draw vertex samplers/views
authorBrian Paul <brianp@vmware.com>
Tue, 21 Sep 2010 21:29:26 +0000 (15:29 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 21 Sep 2010 21:31:33 +0000 (15:31 -0600)
Part of the fix for running softpipe w/ LLVM-enabled draw module.

src/gallium/drivers/softpipe/sp_state_sampler.c

index 79d9516ad9cf949fd0841cb6b71e5f7d40b5e762..1be5136f0ea3bc3556adb53be71d318f7bcc7372 100644 (file)
@@ -118,6 +118,10 @@ softpipe_bind_vertex_sampler_states(struct pipe_context *pipe,
 
    softpipe->num_vertex_samplers = num_samplers;
 
+   draw_set_samplers(softpipe->draw,
+                     softpipe->vertex_samplers,
+                     softpipe->num_vertex_samplers);
+
    softpipe->dirty |= SP_NEW_SAMPLER;
 }
 
@@ -234,6 +238,10 @@ softpipe_set_vertex_sampler_views(struct pipe_context *pipe,
 
    softpipe->num_vertex_sampler_views = num;
 
+   draw_set_sampler_views(softpipe->draw,
+                          softpipe->vertex_sampler_views,
+                          softpipe->num_vertex_sampler_views);
+
    softpipe->dirty |= SP_NEW_TEXTURE;
 }