From a7d33315a76efaa8943dbe439f5538ce6d76ff41 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Tue, 2 Aug 2016 18:40:20 +0200 Subject: [PATCH] st/mesa: remove TES/TCS/GS state dirtying optimization MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This will be replaced with a better mechanism. Tested-by: Edmondo Tommasina Reviewed-by: Nicolai Hähnle --- src/mesa/state_tracker/st_atom.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c index 7548a29..9985168 100644 --- a/src/mesa/state_tracker/st_atom.c +++ b/src/mesa/state_tracker/st_atom.c @@ -133,14 +133,6 @@ void st_validate_state( struct st_context *st, enum st_pipeline pipeline ) st_manager_validate_framebuffers(st); pipeline_mask = ST_PIPELINE_RENDER_STATE_MASK; - - /* Don't update states that have no effect. */ - if (!ctx->TessCtrlProgram._Current) - pipeline_mask &= ~ST_NEW_TCS_RESOURCES; - if (!ctx->TessEvalProgram._Current) - pipeline_mask &= ~ST_NEW_TES_RESOURCES; - if (!ctx->GeometryProgram._Current) - pipeline_mask &= ~ST_NEW_GS_RESOURCES; break; case ST_PIPELINE_COMPUTE: if (ctx->ComputeProgram._Current != &st->cp->Base) -- 2.7.4