diff options
author | Marek Olšák <[email protected]> | 2016-08-02 15:26:19 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-08-12 18:47:24 +0200 |
commit | 0be30ea1a87532650d930f76493902217f96955c (patch) | |
tree | 107aadcd6e280990274bc5355351112335bfbe8b /src/mesa/state_tracker/st_atom.c | |
parent | 412bd7360c46405de3158683ce0f349126c30b77 (diff) |
st/mesa: don't update clip state on VS changes if it has no effect
Tested-by: Edmondo Tommasina <[email protected]>
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_atom.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_atom.c b/src/mesa/state_tracker/st_atom.c index b73ae32d8d7..7548a29168a 100644 --- a/src/mesa/state_tracker/st_atom.c +++ b/src/mesa/state_tracker/st_atom.c @@ -65,7 +65,7 @@ static void check_program_state( struct st_context *st ) struct gl_context *ctx = st->ctx; if (ctx->VertexProgram._Current != &st->vp->Base) - st->dirty |= ST_NEW_VERTEX_PROGRAM; + st->dirty |= ST_NEW_VERTEX_PROGRAM(st); if (ctx->FragmentProgram._Current != &st->fp->Base) st->dirty |= ST_NEW_FRAGMENT_PROGRAM; @@ -97,7 +97,7 @@ static void check_attrib_edgeflag(struct st_context *st) arrays[VERT_ATTRIB_EDGEFLAG]->StrideB != 0; if (vertdata_edgeflags != st->vertdata_edgeflags) { st->vertdata_edgeflags = vertdata_edgeflags; - st->dirty |= ST_NEW_VERTEX_PROGRAM; + st->dirty |= ST_NEW_VERTEX_PROGRAM(st); } edgeflag_culls_prims = edgeflags_enabled && !vertdata_edgeflags && |