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:
Iván Briano 2024-07-02 10:18:44 -07:00 committed by Marge Bot
parent bcc79499fa
commit ece7abb599

View file

@ -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);
}