etnaviv: Flush TS cache before changing TS configuration
This is to make sure that the TS is properly flushed to memory before rendering to a new surface starts. Signed-off-by: Wladimir J. van der Laan <laanwj@gmail.com> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
0d6d9b520b
commit
59d76e7ab6
|
@ -322,6 +322,11 @@ etna_emit_state(struct etna_context *ctx)
|
|||
etna_stall(stream, SYNC_RECIPIENT_RA, SYNC_RECIPIENT_PE);
|
||||
}
|
||||
|
||||
/* Flush TS cache before changing TS configuration. */
|
||||
if (unlikely(dirty & ETNA_DIRTY_TS)) {
|
||||
etna_set_state(stream, VIVS_TS_FLUSH_CACHE, VIVS_TS_FLUSH_CACHE_FLUSH);
|
||||
}
|
||||
|
||||
/* If MULTI_SAMPLE_CONFIG.MSAA_SAMPLES changed, clobber affected shader
|
||||
* state to make sure it is always rewritten. */
|
||||
if (unlikely(dirty & (ETNA_DIRTY_FRAMEBUFFER))) {
|
||||
|
|
Loading…
Reference in New Issue