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>
(cherry picked from commit ece7abb599)
This commit is contained in:
Iván Briano 2024-07-02 10:18:44 -07:00 committed by Eric Engestrom
parent ca8410e4f6
commit 6fbfec0460
2 changed files with 2 additions and 3 deletions

View file

@ -134,7 +134,7 @@
"description": "anv: get scratch surface from the correct pool",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "3ccf80f9b15a49bbd79702d3c4de7ee65c8837b1",
"notes": null

View file

@ -1224,8 +1224,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) >> 4;
}