mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
zink: fall back to util_blitter for scaled resolves
Vulkan can't scale while resolving using vkCmdResolveImage. For this we
need to use util_blitter.
The reason this wasn't a problem in the past, was that glBlitFramebuffer
always set pipe_blit_info::render_condition_enable, and we always used
that to bail out to util_blitter. When the latter changed, this broke.
Fixes: 19906022e2 ("zink: more accurately track supported blits")
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7745>
This commit is contained in:
parent
1c17223c02
commit
c0286fc09b
1 changed files with 5 additions and 0 deletions
|
|
@ -17,6 +17,11 @@ blit_resolve(struct zink_context *ctx, const struct pipe_blit_info *info)
|
|||
info->alpha_blend)
|
||||
return false;
|
||||
|
||||
if (info->src.box.width != info->dst.box.width ||
|
||||
info->src.box.height != info->dst.box.height ||
|
||||
info->src.box.depth != info->dst.box.depth)
|
||||
return false;
|
||||
|
||||
if (info->render_condition_enable &&
|
||||
ctx->render_condition_active)
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue