From 067545eb9af79414054e4bef3ab48af003758663 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 8 Feb 2023 15:36:51 -0500 Subject: [PATCH] zink: always use NEAREST for zs blits LINEAR is illegal, and swapping filtering at this point still seems to be conformant given questionable GL spec requirements for LINEAR zs filtering cc: mesa-stable Part-of: --- src/gallium/drivers/zink/zink_blit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_blit.c b/src/gallium/drivers/zink/zink_blit.c index ceb89314925..c76db5bc902 100644 --- a/src/gallium/drivers/zink/zink_blit.c +++ b/src/gallium/drivers/zink/zink_blit.c @@ -265,7 +265,8 @@ blit_native(struct zink_context *ctx, const struct pipe_blit_info *info, bool *n VKCTX(CmdBlitImage)(cmdbuf, src->obj->image, src->layout, dst->obj->image, dst->layout, 1, ®ion, - zink_filter(info->filter)); + /* VUID-vkCmdBlitImage-srcImage-00232: zs formats must use NEAREST filtering */ + util_format_is_depth_or_stencil(info->src.format) ? VK_FILTER_NEAREST : zink_filter(info->filter)); zink_cmd_debug_marker_end(ctx, marker);