mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
radv: Fix check in insert_block
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25496>
This commit is contained in:
parent
a0fba17311
commit
2be9b66cdd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue