diff options
author | Christian Gmeiner <[email protected]> | 2019-08-06 20:15:41 +0200 |
---|---|---|
committer | Christian Gmeiner <[email protected]> | 2019-08-07 22:12:00 +0200 |
commit | 323cda475b87e270d8a27c5a76ab720044e4a2cd (patch) | |
tree | f4c275538fec5b90787d0b42d4a8da104aeda8ea /src/gallium/drivers/etnaviv/etnaviv_emit.c | |
parent | 0325860e90f928b7022edfe2d0355cbf0c496463 (diff) |
etnaviv: drop struct etna_3d_state
Also drop #if 0 code block.
Signed-off-by: Christian Gmeiner <[email protected]>
Reviewed-by: Philipp Zabel <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_emit.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_emit.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_emit.c b/src/gallium/drivers/etnaviv/etnaviv_emit.c index 93f4b369a30..8581731a130 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_emit.c +++ b/src/gallium/drivers/etnaviv/etnaviv_emit.c @@ -224,15 +224,8 @@ etna_emit_state(struct etna_context *ctx) /* Pre-processing: see what caches we need to flush before making state changes. */ uint32_t to_flush = 0; - if (unlikely(dirty & (ETNA_DIRTY_BLEND))) { - /* Need flush COLOR when changing PE.COLOR_FORMAT.OVERWRITE. */ -#if 0 - /* TODO*/ - if ((ctx->gpu3d.PE_COLOR_FORMAT & VIVS_PE_COLOR_FORMAT_OVERWRITE) != - (etna_blend_state(ctx->blend)->PE_COLOR_FORMAT & VIVS_PE_COLOR_FORMAT_OVERWRITE)) -#endif + if (unlikely(dirty & (ETNA_DIRTY_BLEND))) to_flush |= VIVS_GL_FLUSH_CACHE_COLOR; - } if (unlikely(dirty & (ETNA_DIRTY_TEXTURE_CACHES))) to_flush |= VIVS_GL_FLUSH_CACHE_TEXTURE; if (unlikely(dirty & (ETNA_DIRTY_FRAMEBUFFER))) /* Framebuffer config changed? */ |