From 29a0ea699a4fcd837d0478ad23b50e3cb0431ee4 Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Thu, 11 Jan 2018 11:29:29 +0100 Subject: [PATCH] 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: 4ee7c2c2843c ("etnaviv: enable TS, but disable autodisable") Cc: mesa-stable@lists.freedesktop.org Signed-off-by: Lucas Stach Reviewed-by: Christian Gmeiner --- src/gallium/drivers/etnaviv/etnaviv_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/etnaviv/etnaviv_state.c b/src/gallium/drivers/etnaviv/etnaviv_state.c index b859f40c29f..e4ad0f62f17 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_state.c +++ b/src/gallium/drivers/etnaviv/etnaviv_state.c @@ -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; } -- 2.30.2