From d08412aaa42091f7afb6e52feee44cb6c5e363e1 Mon Sep 17 00:00:00 2001 From: M Henning Date: Sat, 10 Feb 2024 10:56:10 -0500 Subject: [PATCH] gsk: Fix blit sizes while generating mipmaps on vk A few lines later we already had the correct equation for the size. See vulkan 1.3 spec section 12.3.2 "Image Mip Level Sizing" --- gsk/gpu/gskgpumipmapop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gsk/gpu/gskgpumipmapop.c b/gsk/gpu/gskgpumipmapop.c index ccbace3577..f662d606db 100644 --- a/gsk/gpu/gskgpumipmapop.c +++ b/gsk/gpu/gskgpumipmapop.c @@ -129,8 +129,8 @@ gsk_gpu_mipmap_op_vk_command (GskGpuOp *op, .z = 0, }, { - .x = width / 2, - .y = height / 2, + .x = MAX (1, width / 2), + .y = MAX (1, height / 2), .z = 1, } },