summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_pipe_sampler.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2014-04-02 17:12:20 -0600
committerBrian Paul <brianp@vmware.com>2014-04-03 19:39:23 -0600
commit4105ad825f5367fb630631bf13308bf809c17926 (patch)
tree1c10de68875cbbb15ae0808de523e8d53c77c7ea /src/gallium/drivers/svga/svga_pipe_sampler.c
parent5a2f8b2c48a1497ed65bdf1fbdb39957de3f1a88 (diff)
downloadexternal_mesa3d-4105ad825f5367fb630631bf13308bf809c17926.zip
external_mesa3d-4105ad825f5367fb630631bf13308bf809c17926.tar.gz
external_mesa3d-4105ad825f5367fb630631bf13308bf809c17926.tar.bz2
svga: remove no-op checks in sampler, sampler_view functions
We are checking for no-ops in the CSO module for both of these items so there's no reason to do it in the driver. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: José Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_sampler.c')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_sampler.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_sampler.c b/src/gallium/drivers/svga/svga_pipe_sampler.c
index a5b5d00..8a87bb4 100644
--- a/src/gallium/drivers/svga/svga_pipe_sampler.c
+++ b/src/gallium/drivers/svga/svga_pipe_sampler.c
@@ -165,13 +165,6 @@ svga_bind_sampler_states(struct pipe_context *pipe,
if (shader != PIPE_SHADER_FRAGMENT)
return;
- /* Check for no-op */
- if (start + num <= svga->curr.num_samplers &&
- !memcmp(svga->curr.sampler + start, samplers, num * sizeof(void *))) {
- if (0) debug_printf("sampler noop\n");
- return;
- }
-
for (i = 0; i < num; i++)
svga->curr.sampler[start + i] = samplers[i];
@@ -240,14 +233,6 @@ svga_set_sampler_views(struct pipe_context *pipe,
if (shader != PIPE_SHADER_FRAGMENT)
return;
- /* Check for no-op */
- if (start + num <= svga->curr.num_sampler_views &&
- !memcmp(svga->curr.sampler_views + start, views,
- num * sizeof(struct pipe_sampler_view *))) {
- if (0) debug_printf("texture noop\n");
- return;
- }
-
for (i = 0; i < num; i++) {
if (svga->curr.sampler_views[start + i] != views[i]) {
/* Note: we're using pipe_sampler_view_release() here to work around