freedreno/a6xx: Remove dead code from a5xx
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 4 Jun 2019 20:38:33 +0000 (13:38 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Wed, 5 Jun 2019 18:15:04 +0000 (11:15 -0700)
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_program.c

index e56425e6d2c69263fa7aba81f1b75171a8365818..c3345dc1636828d1d60631ae27c500effe0ce98a 100644 (file)
@@ -507,11 +507,6 @@ setup_stateobj(struct fd_ringbuffer *ring, struct fd6_program_state *state,
        if (s[VS].instrlen)
                fd6_emit_shader(ring, s[VS].v);
 
-       // TODO depending on other bits in this reg (if any) set somewhere else?
-#if 0
-       OUT_PKT4(ring, REG_A6XX_PC_PRIM_VTX_CNTL, 1);
-       OUT_RING(ring, COND(s[VS].v->writes_psize, A6XX_PC_PRIM_VTX_CNTL_PSIZE));
-#endif
 
        OUT_PKT4(ring, REG_A6XX_SP_PRIMITIVE_CNTL, 1);
        OUT_RING(ring, A6XX_SP_PRIMITIVE_CNTL_VSOUT(l.cnt));
@@ -573,11 +568,6 @@ setup_stateobj(struct fd_ringbuffer *ring, struct fd6_program_state *state,
        OUT_PKT4(ring, REG_A6XX_VPC_GS_SIV_CNTL, 1);
        OUT_RING(ring, 0x0000ffff);        /* XXX */
 
-#if 0
-       OUT_PKT4(ring, REG_A6XX_SP_SP_CNTL, 1);
-       OUT_RING(ring, 0x00000010);        /* XXX */
-#endif
-
        OUT_PKT4(ring, REG_A6XX_GRAS_CNTL, 1);
        OUT_RING(ring,
                        CONDREG(ij_pix_regid, A6XX_GRAS_CNTL_VARYING) |