summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-04-02 17:15:38 -0600
committerBrian Paul <[email protected]>2014-04-03 19:39:23 -0600
commit61a3e9936cec3a2d061c7500c3acaf10d426cee5 (patch)
tree66d82350fce1bcb6c0c6a233761f3f4d3e5bfa04 /src/gallium/drivers/softpipe
parent4105ad825f5367fb630631bf13308bf809c17926 (diff)
softpipe: 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/softpipe')
-rw-r--r--src/gallium/drivers/softpipe/sp_state_sampler.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/gallium/drivers/softpipe/sp_state_sampler.c b/src/gallium/drivers/softpipe/sp_state_sampler.c
index 161e0e15565..e51241892e1 100644
--- a/src/gallium/drivers/softpipe/sp_state_sampler.c
+++ b/src/gallium/drivers/softpipe/sp_state_sampler.c
@@ -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 */