From: Brian Paul Date: Tue, 21 Sep 2010 21:29:26 +0000 (-0600) Subject: softpipe: add missing calls to set draw vertex samplers/views X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e8d9f456f6c03ac135fd7a1a1443279358494fc;p=mesa.git softpipe: add missing calls to set draw vertex samplers/views Part of the fix for running softpipe w/ LLVM-enabled draw module. --- diff --git a/src/gallium/drivers/softpipe/sp_state_sampler.c b/src/gallium/drivers/softpipe/sp_state_sampler.c index 79d9516ad9c..1be5136f0ea 100644 --- a/src/gallium/drivers/softpipe/sp_state_sampler.c +++ b/src/gallium/drivers/softpipe/sp_state_sampler.c @@ -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; }