summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/postprocess
diff options
context:
space:
mode:
authorMarek Olšák <marek.olsak@amd.com>2015-07-05 15:53:10 +0200
committerMarek Olšák <marek.olsak@amd.com>2015-07-22 23:56:00 +0200
commit3639d66a473591e21aa2ec7692c95c827b479632 (patch)
tree9194a39ecac9b60ef11c84eb1b39463ebcf5041f /src/gallium/auxiliary/postprocess
parent2d8213bfa9023b47a5fd6599596e1b02fdcdd4f6 (diff)
downloadexternal_mesa3d-3639d66a473591e21aa2ec7692c95c827b479632.zip
external_mesa3d-3639d66a473591e21aa2ec7692c95c827b479632.tar.gz
external_mesa3d-3639d66a473591e21aa2ec7692c95c827b479632.tar.bz2
cso: only allow saving and restoring fragment sampler views
Not needed for other shader stages.
Diffstat (limited to 'src/gallium/auxiliary/postprocess')
-rw-r--r--src/gallium/auxiliary/postprocess/pp_run.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/postprocess/pp_run.c b/src/gallium/auxiliary/postprocess/pp_run.c
index e76ce85..04f92c9 100644
--- a/src/gallium/auxiliary/postprocess/pp_run.c
+++ b/src/gallium/auxiliary/postprocess/pp_run.c
@@ -126,7 +126,7 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in,
cso_save_sample_mask(cso);
cso_save_min_samples(cso);
cso_save_samplers(cso, PIPE_SHADER_FRAGMENT);
- cso_save_sampler_views(cso, PIPE_SHADER_FRAGMENT);
+ cso_save_fragment_sampler_views(cso);
cso_save_stencil_ref(cso);
cso_save_stream_outputs(cso);
cso_save_vertex_elements(cso);
@@ -197,7 +197,7 @@ pp_run(struct pp_queue_t *ppq, struct pipe_resource *in,
cso_restore_sample_mask(cso);
cso_restore_min_samples(cso);
cso_restore_samplers(cso, PIPE_SHADER_FRAGMENT);
- cso_restore_sampler_views(cso, PIPE_SHADER_FRAGMENT);
+ cso_restore_fragment_sampler_views(cso);
cso_restore_stencil_ref(cso);
cso_restore_stream_outputs(cso);
cso_restore_vertex_elements(cso);