mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
radeonsi: enable nir_io_compaction_groups_tes_inputs_into_pos_and_var_groups
It's only useful when TES culls.
shader-db with ACO:
143 shaders have -1.44% average decrease in code size.
There are fewer input loads and more of them are vec4 instead of vec1-3.
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32262>
This commit is contained in:
parent
0836e9758b
commit
78a3b48db0
1 changed files with 3 additions and 1 deletions
|
|
@ -901,7 +901,9 @@ void si_init_screen_get_functions(struct si_screen *sscreen)
|
|||
* when execution mode is rtz instead of rtne.
|
||||
*/
|
||||
options->force_f2f16_rtz = true;
|
||||
options->io_options |= (!has_mediump ? nir_io_mediump_is_32bit : 0) | nir_io_has_intrinsics;
|
||||
options->io_options |= (!has_mediump ? nir_io_mediump_is_32bit : 0) | nir_io_has_intrinsics |
|
||||
(sscreen->use_ngg_culling ?
|
||||
nir_io_compaction_groups_tes_inputs_into_pos_and_var_groups : 0);
|
||||
options->lower_mediump_io = has_mediump ? si_lower_mediump_io : NULL;
|
||||
/* HW supports indirect indexing for: | Enabled in driver
|
||||
* -------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue