zink: block resolve blits for depth/stencil buffers
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 14 Jun 2020 05:44:38 +0000 (01:44 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 14 Jul 2020 12:57:22 +0000 (12:57 +0000)
"The format features of dstImage must contain VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT"
- vkCmdResolveImage spec

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5888>

src/gallium/drivers/zink/zink_blit.c

index 2fdc7d582becba2bb6a48273b81ca92b91340754..96824c8a049e8a8970fb7eed83af0720926ec7a7 100644 (file)
@@ -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)