Skip to content

ac/nir/tess: Use less LDS space by eliminating gaps between output slots.

Timur Kristóf requested to merge Venemo/mesa:ac_nir_tess_lds_opt into main

The main objective of this MR is to make the LDS layout entirely self-contained and independent of any driver locations.

Refector ac_nir_lower_hs_outputs_to_mem to map output locations for LDS separately from VRAM. This allows it to store the TCS output slots without any gaps and thereby allowing it to use less LDS. Also fix TCS output loads for some special cases.

Drivers will have the opportunity to allocate less LDS space to TCS, based solely on the number of outputs that really need to be stored in LDS, however this MR doesn't touch the drivers yet.

Merge request reports