mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 17:40:25 +01:00
anv: Fix typo when checking if async rt scratch size changed
Current stack size is stored in layout.sw_stack_size, but the function
thats supposed to update it is comparing layout.total_size instead.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
CC: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38898>
(cherry picked from commit 0b3f0d1662)
This commit is contained in:
parent
df07f10924
commit
7e9f5c9ca5
2 changed files with 2 additions and 2 deletions
|
|
@ -614,7 +614,7 @@
|
|||
"description": "anv: Fix typo when checking if async rt scratch size changed",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -1305,7 +1305,7 @@ anv_cmd_buffer_set_stack_size(struct vk_command_buffer *vk_cmd_buffer,
|
|||
if (stack_size_log2 < 10)
|
||||
stack_size_log2 = 10;
|
||||
|
||||
if (rt->scratch.layout.total_size == 1 << stack_size_log2)
|
||||
if (rt->scratch.layout.sw_stack_size == 1 << stack_size_log2)
|
||||
return;
|
||||
|
||||
brw_rt_compute_scratch_layout(&rt->scratch.layout, device->info,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue