softpipe: remove no-op checks in sampler, sampler_view functions
authorBrian Paul <brianp@vmware.com>
Wed, 2 Apr 2014 23:15:38 +0000 (17:15 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 4 Apr 2014 01:39:23 +0000 (19:39 -0600)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_state_sampler.c

index 161e0e155652081177b8406677119fbd262c392a..e51241892e1c0739da545f6ad24f2ab736588510 100644 (file)
@@ -57,13 +57,6 @@ softpipe_bind_sampler_states(struct pipe_context *pipe,
    assert(shader < PIPE_SHADER_TYPES);
    assert(start + num <= Elements(softpipe->samplers[shader]));
 
-   /* Check for no-op */
-   if (start + num <= softpipe->num_samplers[shader] &&
-       !memcmp(softpipe->samplers[shader] + start, samplers,
-               num * sizeof(void *))) {
-      return;
-   }
-
    draw_flush(softpipe->draw);
 
    /* set the new samplers */
@@ -112,13 +105,6 @@ softpipe_set_sampler_views(struct pipe_context *pipe,
    assert(shader < PIPE_SHADER_TYPES);
    assert(start + num <= Elements(softpipe->sampler_views[shader]));
 
-   /* Check for no-op */
-   if (start + num <= softpipe->num_sampler_views[shader] &&
-       !memcmp(softpipe->sampler_views[shader] + start, views,
-               num * sizeof(struct pipe_sampler_view *))) {
-      return;
-   }
-
    draw_flush(softpipe->draw);
 
    /* set the new sampler views */