radeonsi: return false from si_update_ngg early on gfx11+
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37849>
This commit is contained in:
@@ -3888,6 +3888,12 @@ static void si_update_tess_uses_prim_id(struct si_context *sctx)
|
||||
|
||||
bool si_update_ngg(struct si_context *sctx)
|
||||
{
|
||||
/* GFX11 can't disable NGG. */
|
||||
if (sctx->gfx_level >= GFX11) {
|
||||
assert(sctx->ngg);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!sctx->screen->use_ngg) {
|
||||
assert(!sctx->ngg);
|
||||
return false;
|
||||
@@ -3897,7 +3903,7 @@ bool si_update_ngg(struct si_context *sctx)
|
||||
|
||||
if (sctx->shader.gs.cso && sctx->shader.tes.cso && sctx->shader.gs.cso->tess_turns_off_ngg) {
|
||||
new_ngg = false;
|
||||
} else if (sctx->gfx_level < GFX11) {
|
||||
} else {
|
||||
struct si_shader_selector *last = si_get_vs(sctx)->cso;
|
||||
|
||||
if ((last && last->info.enabled_streamout_buffer_mask) ||
|
||||
|
||||
Reference in New Issue
Block a user