zink: block vkCmdBlitImage usage for multi sampled blits

this is prohibited by spec

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5888>
This commit is contained in:
Mike Blumenkrantz 2020-06-14 00:30:55 -04:00 committed by Marge Bot
parent ab78831baa
commit 582669f07e
1 changed files with 4 additions and 0 deletions

View File

@ -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);