[PATCH] etnaviv: dirty TS state when framebuffer has changed
Christian Gmeiner
christian.gmeiner at gmail.com
Sun Jan 21 11:47:24 UTC 2018
2018-01-11 11:29 GMT+01:00 Lucas Stach <l.stach at pengutronix.de>:
> 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.
>
> Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>
> ---
> 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 b859f40c29fe..e4ad0f62f176 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.11.0
>
> _______________________________________________
> etnaviv mailing list
> etnaviv at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/etnaviv
--
greets
--
Christian Gmeiner, MSc
https://christian-gmeiner.info
More information about the etnaviv
mailing list