From: Lucas Stach Date: Thu, 11 Jan 2018 10:29:29 +0000 (+0100) Subject: etnaviv: dirty TS state when framebuffer has changed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29a0ea699a4fcd837d0478ad23b50e3cb0431ee4;p=mesa.git 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 --- 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; }