summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2019-08-06 20:15:41 +0200
committerChristian Gmeiner <[email protected]>2019-08-07 22:12:00 +0200
commit323cda475b87e270d8a27c5a76ab720044e4a2cd (patch)
treef4c275538fec5b90787d0b42d4a8da104aeda8ea /src/gallium
parent0325860e90f928b7022edfe2d0355cbf0c496463 (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')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_context.h3
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_emit.c9
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_internal.h6
3 files changed, 1 insertions, 17 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_context.h b/src/gallium/drivers/etnaviv/etnaviv_context.h
index e1ce66b5dff..81d4d963e05 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_context.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_context.h
@@ -175,9 +175,6 @@ struct etna_context {
struct pipe_viewport_state viewport_s;
struct pipe_scissor_state scissor_s;
- /* cached state of entire GPU */
- struct etna_3d_state gpu3d;
-
/* stats/counters */
struct {
uint64_t prims_emitted;
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? */
diff --git a/src/gallium/drivers/etnaviv/etnaviv_internal.h b/src/gallium/drivers/etnaviv/etnaviv_internal.h
index c8897e4ad92..1f70a1cf260 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_internal.h
+++ b/src/gallium/drivers/etnaviv/etnaviv_internal.h
@@ -269,12 +269,6 @@ struct compiled_shader_state {
struct etna_reloc VS_INST_ADDR;
};
-/* state of some 3d and common registers relevant to etna driver */
-struct etna_3d_state {
- uint32_t /*05000*/ VS_UNIFORMS[VIVS_VS_UNIFORMS__LEN];
- uint32_t /*07000*/ PS_UNIFORMS[VIVS_PS_UNIFORMS__LEN];
-};
-
/* Helpers to assist creating and setting bitarrays (eg, for varyings).
* field_size must be a power of two, and <= 32. */
#define DEFINE_ETNA_BITARRAY(name, num, field_size) \