st/mesa: remove TES/TCS/GS state dirtying optimization
authorMarek Olšák <marek.olsak@amd.com>
Tue, 2 Aug 2016 16:40:20 +0000 (18:40 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 12 Aug 2016 16:47:24 +0000 (18:47 +0200)
This will be replaced with a better mechanism.

Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mesa/state_tracker/st_atom.c

index 7548a29168a05c740c39e96ddc6b96b1361bd982..9985168be0954bb4433c29b58d0ad3f53c1c7356 100644 (file)
@@ -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)