Tested-by: Edmondo Tommasina <edmondo.tommasina@gmail.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
uint64_t dirty, pipeline_mask;
uint32_t dirty_lo, dirty_hi;
- /* Get Mesa driver state. */
- st->dirty |= st->ctx->NewDriverState & ST_ALL_STATES_MASK;
- st->ctx->NewDriverState = 0;
+ /* Get Mesa driver state.
+ *
+ * Inactive states are shader states not used by shaders at the moment.
+ */
+ st->dirty |= ctx->NewDriverState & st->active_states & ST_ALL_STATES_MASK;
+ ctx->NewDriverState = 0;
/* Get pipeline state. */
switch (pipeline) {