etnaviv: dirty TS state when framebuffer has changed

When switching between framebuffers with and without TS, the TS state
needs to be flushed to the command stream even if the derived state
isn't changed.

Fixes: 4ee7c2c284 ("etnaviv: enable TS, but disable autodisable")
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
Lucas Stach 2018-01-11 11:29:29 +01:00 committed by Christian Gmeiner
parent e03c880971
commit 29a0ea699a

View File

@ -611,7 +611,8 @@ etna_update_ts_config(struct etna_context *ctx)
}
}
if (new_ts_config != ctx->framebuffer.TS_MEM_CONFIG) {
if (new_ts_config != ctx->framebuffer.TS_MEM_CONFIG ||
(ctx->dirty & ETNA_DIRTY_FRAMEBUFFER)) {
ctx->framebuffer.TS_MEM_CONFIG = new_ts_config;
ctx->dirty |= ETNA_DIRTY_TS;
}