From f0e1512673d07530f4631c9664c868698c512ac4 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 14 Feb 2023 10:10:20 -0500 Subject: [PATCH] zink: block LINEAR filtered blits for zs formats this is illegal, and the u_blitter path has to be taken to guarantee enough accuracy that the strictest piglit tests pass cc: mesa-stable Part-of: --- src/gallium/drivers/zink/zink_blit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_blit.c b/src/gallium/drivers/zink/zink_blit.c index ceb89314925..1aa938cbe32 100644 --- a/src/gallium/drivers/zink/zink_blit.c +++ b/src/gallium/drivers/zink/zink_blit.c @@ -135,7 +135,7 @@ blit_native(struct zink_context *ctx, const struct pipe_blit_info *info, bool *n return false; if (util_format_is_depth_or_stencil(info->dst.format) && - info->dst.format != info->src.format) + (info->dst.format != info->src.format || info->filter == PIPE_TEX_FILTER_LINEAR)) return false; /* vkCmdBlitImage must not be used for multisampled source or destination images. */