zink: block resolves where src extents > dst extents
vulkan resolves only provide "extents" instead of src and dst regions like GL, which means vk resolves can't be used to downscale images, as such operations will instead just crop the image fixes #8655 cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22195>
This commit is contained in:

committed by
Marge Bot

parent
373c6346f5
commit
db582e5e7d
@@ -41,6 +41,11 @@ blit_resolve(struct zink_context *ctx, const struct pipe_blit_info *info, bool *
|
||||
info->src.box.depth < 0 ||
|
||||
info->dst.box.depth < 0)
|
||||
return false;
|
||||
/* vulkan resolves can't downscale */
|
||||
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)
|
||||
|
Reference in New Issue
Block a user