From: Mike Blumenkrantz Date: Sun, 14 Jun 2020 04:30:55 +0000 (-0400) Subject: zink: block vkCmdBlitImage usage for multi sampled blits X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=582669f07e7d0ee4ef61d2e487f886be9e8e7890;p=mesa.git zink: block vkCmdBlitImage usage for multi sampled blits this is prohibited by spec Reviewed-by: Erik Faye-Lund Part-of: --- diff --git a/src/gallium/drivers/zink/zink_blit.c b/src/gallium/drivers/zink/zink_blit.c index 6dd3caaece1..2fdc7d582be 100644 --- a/src/gallium/drivers/zink/zink_blit.c +++ b/src/gallium/drivers/zink/zink_blit.c @@ -80,6 +80,10 @@ blit_native(struct zink_context *ctx, const struct pipe_blit_info *info) info->dst.format != info->src.format) return false; + /* vkCmdBlitImage must not be used for multisampled source or destination images. */ + if (info->src.resource->nr_samples > 1 || info->dst.resource->nr_samples > 1) + return false; + struct zink_resource *src = zink_resource(info->src.resource); struct zink_resource *dst = zink_resource(info->dst.resource);