mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
radv: Increase NGG culling PS param limit to 12 on GFX10.
Helps performance in Baldur's Gate 3 on Navi 10 when NGG culling is enabled. Also fix the description of the RADV_PERFTEST=nggc env var. Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31971>
This commit is contained in:
parent
5068a6b4ce
commit
6bf19b2d70
2 changed files with 3 additions and 1 deletions
|
|
@ -1663,7 +1663,7 @@ RadeonSI driver environment variables
|
|||
``nongg``
|
||||
Disable NGG and use the legacy pipeline.
|
||||
``nggc``
|
||||
Always use NGG culling even when it can hurt.
|
||||
Always use NGG culling even on GPUs where it is disabled by default.
|
||||
``nonggc``
|
||||
Disable NGG culling.
|
||||
``switch_on_eop``
|
||||
|
|
|
|||
|
|
@ -669,6 +669,8 @@ radv_consider_culling(const struct radv_physical_device *pdev, struct nir_shader
|
|||
|
||||
if (pdev->info.gfx_level >= GFX10_3 && pdev->info.has_dedicated_vram)
|
||||
max_ps_params = 12; /* GFX10.3 and newer discrete GPUs. */
|
||||
else if (pdev->info.gfx_level == GFX10 && pdev->info.has_dedicated_vram)
|
||||
max_ps_params = 12;
|
||||
|
||||
/* TODO: consider other heuristics here, such as PS execution time */
|
||||
if (util_bitcount64(ps_inputs_read) > max_ps_params)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue