diff options
author | Erik Faye-Lund <[email protected]> | 2019-11-01 13:35:55 +0100 |
---|---|---|
committer | Erik Faye-Lund <[email protected]> | 2020-02-03 21:42:52 +0100 |
commit | 5d83314945d5f286cbe4fff9b07d2756f36a64c6 (patch) | |
tree | 39653dc759c4f276da3517be308423df11ce6249 /src/gallium | |
parent | 85d4b41f6830253b81b591fa401a9c5aea5e407a (diff) |
zink: disallow depth-stencil blits with format-change
The Vulkan spec says this about vkCmdBlitImage:
"No format conversion is supported between depth/stencil images. The
formats must match."
So yeah, let's stop trying to do this.
Reviewed-by: Dave Airlie <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3681>
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/drivers/zink/zink_blit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/zink/zink_blit.c b/src/gallium/drivers/zink/zink_blit.c index fc16aab7629..2fa0c359cc0 100644 --- a/src/gallium/drivers/zink/zink_blit.c +++ b/src/gallium/drivers/zink/zink_blit.c @@ -73,6 +73,10 @@ blit_native(struct zink_context *ctx, const struct pipe_blit_info *info) info->alpha_blend) return false; + if (util_format_is_depth_or_stencil(info->dst.format) && + info->dst.format != info->src.format) + return false; + struct zink_resource *src = zink_resource(info->src.resource); struct zink_resource *dst = zink_resource(info->dst.resource); |