aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2020-04-10 13:27:09 +1000
committerDave Airlie <[email protected]>2020-04-15 14:26:33 +1000
commit9bf8e923863230914f6bf2a4abcf257cb8778ee7 (patch)
tree91eedb3318c6340c96cde853335305975c3d8c0c /src
parent381e9fe64a80d98144a4ad75044edd9b878c7de7 (diff)
u_blitter: fix stencil blitting
Fixes: KHR-GL45.packed_depth_stencil.blit.depth32f_stencil8 Reviewed-by: Roland Scheidegger <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4560>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/util/u_simple_shaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_simple_shaders.c b/src/gallium/auxiliary/util/u_simple_shaders.c
index 983307ead73..5faa8942be3 100644
--- a/src/gallium/auxiliary/util/u_simple_shaders.c
+++ b/src/gallium/auxiliary/util/u_simple_shaders.c
@@ -417,7 +417,7 @@ util_make_fs_blit_zs(struct pipe_context *pipe, unsigned zs_mask,
if (zs_mask & PIPE_MASK_S) {
stencil_sampler = ureg_DECL_sampler(ureg, zs_mask & PIPE_MASK_Z ? 1 : 0);
- ureg_DECL_sampler_view(ureg, 0, tex_target,
+ ureg_DECL_sampler_view(ureg, zs_mask & PIPE_MASK_Z ? 1 : 0, tex_target,
TGSI_RETURN_TYPE_UINT,
TGSI_RETURN_TYPE_UINT,
TGSI_RETURN_TYPE_UINT,