diff options
author | Marek Olšák <marek.olsak@amd.com> | 2015-07-05 15:53:10 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2015-07-22 23:56:00 +0200 |
commit | 3639d66a473591e21aa2ec7692c95c827b479632 (patch) | |
tree | 9194a39ecac9b60ef11c84eb1b39463ebcf5041f /src/gallium/auxiliary/hud/hud_context.c | |
parent | 2d8213bfa9023b47a5fd6599596e1b02fdcdd4f6 (diff) | |
download | external_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/hud/hud_context.c')
-rw-r--r-- | src/gallium/auxiliary/hud/hud_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/hud/hud_context.c b/src/gallium/auxiliary/hud/hud_context.c index bd57190..4602b7c 100644 --- a/src/gallium/auxiliary/hud/hud_context.c +++ b/src/gallium/auxiliary/hud/hud_context.c @@ -437,7 +437,7 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex) cso_save_blend(cso); cso_save_depth_stencil_alpha(cso); cso_save_fragment_shader(cso); - cso_save_sampler_views(cso, PIPE_SHADER_FRAGMENT); + cso_save_fragment_sampler_views(cso); cso_save_samplers(cso, PIPE_SHADER_FRAGMENT); cso_save_rasterizer(cso); cso_save_viewport(cso); @@ -567,7 +567,7 @@ hud_draw(struct hud_context *hud, struct pipe_resource *tex) cso_restore_blend(cso); cso_restore_depth_stencil_alpha(cso); cso_restore_fragment_shader(cso); - cso_restore_sampler_views(cso, PIPE_SHADER_FRAGMENT); + cso_restore_fragment_sampler_views(cso); cso_restore_samplers(cso, PIPE_SHADER_FRAGMENT); cso_restore_rasterizer(cso); cso_restore_viewport(cso); |