mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
anv: get scratch surface from the correct pool
Fixes: 3ccf80f9b1 ("anv: prepare 2 variants of all shader instructions")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30097>
This commit is contained in:
parent
bcc79499fa
commit
ece7abb599
1 changed files with 1 additions and 2 deletions
|
|
@ -1223,8 +1223,7 @@ get_scratch_surf(struct anv_pipeline *pipeline,
|
|||
anv_scratch_pool_alloc(pipeline->device, pool,
|
||||
stage, bin->prog_data->total_scratch);
|
||||
anv_reloc_list_add_bo(pipeline->batch.relocs, bo);
|
||||
return anv_scratch_pool_get_surf(pipeline->device,
|
||||
&pipeline->device->scratch_pool,
|
||||
return anv_scratch_pool_get_surf(pipeline->device, pool,
|
||||
bin->prog_data->total_scratch) >> ANV_SCRATCH_SPACE_SHIFT(GFX_VER);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue