Revert "zink: always use NEAREST for zs blits"
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 14 Feb 2023 15:08:22 +0000 (10:08 -0500)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Feb 2023 23:52:34 +0000 (23:52 +0000)
This reverts commit 067545eb9af79414054e4bef3ab48af003758663.

this is good enough for CI but not enough for anholt's piglit tests

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21314>

src/gallium/drivers/zink/zink_blit.c

index c76db5b..ceb8931 100644 (file)
@@ -265,8 +265,7 @@ 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, &region,
-                  /* 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_filter(info->filter));
 
    zink_cmd_debug_marker_end(ctx, marker);