llvmpipe: remove no-op checks in sampler, sampler_view functions
authorBrian Paul <brianp@vmware.com>
Wed, 2 Apr 2014 23:15:47 +0000 (17:15 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 4 Apr 2014 02:05:56 +0000 (20:05 -0600)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_state_sampler.c

index db8646c5c9a6ae7ad287b11c8c8469152d0b88be..09bc9280a16b28a318ff903241ec289ecb030b8a 100644 (file)
@@ -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 */