freedreno/a6xx: remove fd6_emit_render_cntl()
authorRob Clark <robdclark@gmail.com>
Fri, 12 Oct 2018 20:27:59 +0000 (16:27 -0400)
committerRob Clark <robdclark@gmail.com>
Wed, 17 Oct 2018 16:44:48 +0000 (12:44 -0400)
It was dead code carried over from a5xx

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_draw.c
src/gallium/drivers/freedreno/a6xx/fd6_emit.h

index 252fdc354b42fb293eda481c53310b0fe6c073da..d9e363575db2db143cf7645fd83a3975d317f5c7 100644 (file)
@@ -146,8 +146,6 @@ draw_impl(struct fd_context *ctx, struct fd_ringbuffer *ring,
        OUT_RING(ring, info->primitive_restart ? /* PC_RESTART_INDEX */
                        info->restart_index : 0xffffffff);
 
-       fd6_emit_render_cntl(ctx, false, emit->key.binning_pass);
-
        /* for debug after a lock up, write a unique counter value
         * to scratch7 for each draw, to make it easier to match up
         * register dumps to cmdstream.  The combination of IB
@@ -419,8 +417,6 @@ fd6_clear(struct fd_context *ctx, unsigned buffers,
                        is_z32(pfb->zsbuf->format))
                return false;
 
-       fd6_emit_render_cntl(ctx, true, false);
-
        OUT_PKT4(ring, REG_A6XX_RB_BLIT_SCISSOR_TL, 2);
        OUT_RING(ring, A6XX_RB_BLIT_SCISSOR_TL_X(scissor->minx) |
                         A6XX_RB_BLIT_SCISSOR_TL_Y(scissor->miny));
index 743e5df196b6126027c1ff9f57280e29b3c3b896..4ebb5987423a045e602889f3e36217a6a56443c9 100644 (file)
@@ -120,36 +120,6 @@ fd6_emit_blit(struct fd_batch *batch, struct fd_ringbuffer *ring)
        emit_marker6(ring, 7);
 }
 
-static inline void
-fd6_emit_render_cntl(struct fd_context *ctx, bool blit, bool binning)
-{
-#if 0
-       struct fd_ringbuffer *ring = binning ? ctx->batch->binning : ctx->batch->draw;
-
-       /* TODO eventually this partially depends on the pfb state, ie.
-        * which of the cbuf(s)/zsbuf has an UBWC flag buffer.. that part
-        * we could probably cache and just regenerate if framebuffer
-        * state is dirty (or something like that)..
-        *
-        * Other bits seem to depend on query state, like if samples-passed
-        * query is active.
-        */
-       bool samples_passed = (fd6_context(ctx)->samples_passed_queries > 0);
-       OUT_PKT4(ring, REG_A6XX_RB_RENDER_CNTL, 1);
-       OUT_RING(ring, 0x00000000 |   /* RB_RENDER_CNTL */
-                       COND(binning, A6XX_RB_RENDER_CNTL_BINNING_PASS) |
-                       COND(binning, A6XX_RB_RENDER_CNTL_DISABLE_COLOR_PIPE) |
-                       COND(samples_passed, A6XX_RB_RENDER_CNTL_SAMPLES_PASSED) |
-                       COND(!blit, 0x8));
-       OUT_PKT4(ring, REG_A6XX_GRAS_SC_CNTL, 1);
-       OUT_RING(ring, 0x00000008 |   /* GRAS_SC_CNTL */
-                       COND(binning, A6XX_GRAS_SC_CNTL_BINNING_PASS) |
-                       COND(samples_passed, A6XX_GRAS_SC_CNTL_SAMPLES_PASSED));
-#else
-       DBG("render ctl stub");
-#endif
-}
-
 static inline void
 fd6_emit_lrz_flush(struct fd_ringbuffer *ring)
 {