mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 06:00:22 +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> (cherry picked from commitece7abb599)
This commit is contained in:
parent
ca8410e4f6
commit
6fbfec0460
2 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue