mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-24 07:50:26 +00:00
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:
parent
e03c880971
commit
29a0ea699a
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user