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: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21203>
(cherry picked from commit 067545eb9a)
This commit is contained in:
Mike Blumenkrantz 2023-02-08 15:36:51 -05:00 committed by Eric Engestrom
parent 7cab0f7838
commit 1eb541289f
2 changed files with 3 additions and 2 deletions

View file

@ -247,7 +247,7 @@
"description": "zink: always use NEAREST for zs blits",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -252,7 +252,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, &region,
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));
return true;
}