mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
radeonsi: enable NGG culling by default on gfx10.3 dGPUs
for better performance Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7172>
This commit is contained in:
parent
e7d3f22c6a
commit
7648060dc0
1 changed files with 6 additions and 2 deletions
|
|
@ -2794,11 +2794,15 @@ static void *si_create_shader_selector(struct pipe_context *ctx,
|
|||
|
||||
if (sscreen->debug_flags & DBG(ALWAYS_NGG_CULLING_ALL))
|
||||
sel->ngg_cull_vert_threshold = 0; /* always enabled */
|
||||
else if (sscreen->options.shader_culling)
|
||||
else if (sscreen->options.shader_culling ||
|
||||
(sscreen->info.chip_class == GFX10_3 &&
|
||||
sscreen->info.has_dedicated_vram))
|
||||
sel->ngg_cull_vert_threshold = 1500; /* vertex count must be more than this */
|
||||
} else if (sel->info.stage == MESA_SHADER_TESS_EVAL) {
|
||||
if (sscreen->debug_flags & DBG(ALWAYS_NGG_CULLING_ALL) ||
|
||||
sscreen->debug_flags & DBG(ALWAYS_NGG_CULLING_TESS))
|
||||
sscreen->debug_flags & DBG(ALWAYS_NGG_CULLING_TESS) ||
|
||||
(sscreen->info.chip_class == GFX10_3 &&
|
||||
sscreen->info.has_dedicated_vram))
|
||||
sel->ngg_cull_vert_threshold = 0; /* always enabled */
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue