From 582669f07e7d0ee4ef61d2e487f886be9e8e7890 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Sun, 14 Jun 2020 00:30:55 -0400 Subject: [PATCH] zink: block vkCmdBlitImage usage for multi sampled blits this is prohibited by spec Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_blit.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 2.30.2