aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMike Blumenkrantz <[email protected]>2020-06-14 01:44:38 -0400
committerMarge Bot <[email protected]>2020-07-14 12:57:22 +0000
commite1e7584bde71b3bb1337de0d12ecf591f552b3fe (patch)
tree20961aac079caccd483c70e20da206c91323f834 /src/gallium/drivers
parent582669f07e7d0ee4ef61d2e487f886be9e8e7890 (diff)
zink: block resolve blits for depth/stencil buffers
"The format features of dstImage must contain VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT" - vkCmdResolveImage spec Reviewed-by: Erik Faye-Lund <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5888>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/zink/zink_blit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_blit.c b/src/gallium/drivers/zink/zink_blit.c
index 2fdc7d582be..96824c8a049 100644
--- a/src/gallium/drivers/zink/zink_blit.c
+++ b/src/gallium/drivers/zink/zink_blit.c
@@ -12,6 +12,7 @@ blit_resolve(struct zink_context *ctx, const struct pipe_blit_info *info)
{
if (util_format_get_mask(info->dst.format) != info->mask ||
util_format_get_mask(info->src.format) != info->mask ||
+ util_format_is_depth_or_stencil(info->dst.format) ||
info->scissor_enable ||
info->alpha_blend ||
info->render_condition_enable)