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:
parent
ab78831baa
commit
582669f07e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue