etnaviv: drop struct etna_3d_state
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Tue, 6 Aug 2019 18:15:41 +0000 (20:15 +0200)
committerChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 7 Aug 2019 20:12:00 +0000 (22:12 +0200)
Also drop #if 0 code block.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Philipp Zabel <philipp.zabel@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_context.h
src/gallium/drivers/etnaviv/etnaviv_emit.c
src/gallium/drivers/etnaviv/etnaviv_internal.h

index e1ce66b5dffc282f4fa03178e929f32f1c563bde..81d4d963e058865f7c88e7b61b408be049760845 100644 (file)
@@ -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;
index 93f4b369a3031fbbd67f916851fde17e7d49c2ee..8581731a130af10d56b283a8673d4f0ad6af8fb8 100644 (file)
@@ -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? */
index c8897e4ad92191806d87f0827b6942fbc1721322..1f70a1cf2604f6021fddfeff5d34757a22a6b496 100644 (file)
@@ -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) \