diff options
author | Brian Paul <[email protected]> | 2014-04-02 17:15:47 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-04-03 20:05:56 -0600 |
commit | 177c9be61535a66607e0de9b0ecf00c8d5d451ac (patch) | |
tree | a6f3a4d1bd8619eef1d06af9caecbc2dc639e241 /src/gallium/drivers/llvmpipe | |
parent | 61a3e9936cec3a2d061c7500c3acaf10d426cee5 (diff) |
llvmpipe: remove no-op checks in sampler, sampler_view functions
Reviewed-by: Roland Scheidegger <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_sampler.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_sampler.c b/src/gallium/drivers/llvmpipe/lp_state_sampler.c index db8646c5c9a..09bc9280a16 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_sampler.c +++ b/src/gallium/drivers/llvmpipe/lp_state_sampler.c @@ -77,13 +77,6 @@ llvmpipe_bind_sampler_states(struct pipe_context *pipe, assert(shader < PIPE_SHADER_TYPES); assert(start + num <= Elements(llvmpipe->samplers[shader])); - /* Check for no-op */ - if (start + num <= llvmpipe->num_samplers[shader] && - !memcmp(llvmpipe->samplers[shader] + start, samplers, - num * sizeof(void *))) { - return; - } - draw_flush(llvmpipe->draw); /* set the new samplers */ @@ -125,13 +118,6 @@ llvmpipe_set_sampler_views(struct pipe_context *pipe, assert(shader < PIPE_SHADER_TYPES); assert(start + num <= Elements(llvmpipe->sampler_views[shader])); - /* Check for no-op */ - if (start + num <= llvmpipe->num_sampler_views[shader] && - !memcmp(llvmpipe->sampler_views[shader] + start, views, - num * sizeof(struct pipe_sampler_view *))) { - return; - } - draw_flush(llvmpipe->draw); /* set the new sampler views */ |