mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 12:40:23 +01:00
turnip: Stop allocating unused pvtmem space in the pipeline CS.
The pvtmem was split off to a separate read/write BO.
Fixes: 931ad19a18 ("turnip: make cmdstream bo's read-only to GPU")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15038>
This commit is contained in:
parent
80c44a6626
commit
e0fbdd3eda
1 changed files with 0 additions and 6 deletions
|
|
@ -2263,18 +2263,13 @@ tu_pipeline_allocate_cs(struct tu_device *dev,
|
|||
|
||||
/* graphics case: */
|
||||
if (builder) {
|
||||
uint32_t pvtmem_bytes = 0;
|
||||
for (uint32_t i = 0; i < ARRAY_SIZE(builder->variants); i++) {
|
||||
if (builder->variants[i]) {
|
||||
size += builder->variants[i]->info.size / 4;
|
||||
pvtmem_bytes = MAX2(pvtmem_bytes, builder->variants[i]->pvtmem_size);
|
||||
}
|
||||
}
|
||||
|
||||
size += builder->binning_variant->info.size / 4;
|
||||
pvtmem_bytes = MAX2(pvtmem_bytes, builder->binning_variant->pvtmem_size);
|
||||
|
||||
size += calc_pvtmem_size(dev, NULL, pvtmem_bytes) / 4;
|
||||
|
||||
builder->additional_cs_reserve_size = 0;
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(builder->variants); i++) {
|
||||
|
|
@ -2293,7 +2288,6 @@ tu_pipeline_allocate_cs(struct tu_device *dev,
|
|||
size += builder->additional_cs_reserve_size;
|
||||
} else {
|
||||
size += compute->info.size / 4;
|
||||
size += calc_pvtmem_size(dev, NULL, compute->pvtmem_size) / 4;
|
||||
|
||||
size += tu_xs_get_additional_cs_size_dwords(compute);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue