diff options
author | Brian Paul <[email protected]> | 2010-09-21 15:29:26 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-09-21 15:31:33 -0600 |
commit | 9e8d9f456f6c03ac135fd7a1a1443279358494fc (patch) | |
tree | b66e5c3d701e12b98991bc4c8390b2b569f1eb0d /src/gallium/drivers | |
parent | ffa2d203fb71d54dc8dfa5d17aa1637d2f2bb5b5 (diff) |
softpipe: add missing calls to set draw vertex samplers/views
Part of the fix for running softpipe w/ LLVM-enabled draw module.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_state_sampler.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |