From: Friedrich Vock Date: Fri, 18 Aug 2023 21:01:26 +0000 (+0200) Subject: radv: Fix check in insert_block X-Git-Tag: upstream/23.3.3~1428 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2be9b66cddbe56136adb95013f084b3d881b8b71;p=platform%2Fupstream%2Fmesa.git radv: Fix check in insert_block Cc: mesa-stable Part-of: --- diff --git a/src/amd/vulkan/radv_shader.c b/src/amd/vulkan/radv_shader.c index 06be4ac..d4f1bb2 100644 --- a/src/amd/vulkan/radv_shader.c +++ b/src/amd/vulkan/radv_shader.c @@ -1078,7 +1078,7 @@ insert_block(struct radv_device *device, union radv_shader_arena_block *hole, ui add_hole(free_list, left_hole); } - if (hole_end > offset_in_hole + size) { + if (hole->size > offset_in_hole + size) { right_hole = alloc_block_obj(device); if (!right_hole) { free(left_hole);