From c557fcaf2baee27dc492ddc910b07f4adc5666b0 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Tue, 26 Mar 2019 10:00:12 -0400 Subject: [PATCH] freedreno/a6xx: small cleanup Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/a6xx/fd6_program.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_program.c b/src/gallium/drivers/freedreno/a6xx/fd6_program.c index c20472f63c2..d44ecf42577 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_program.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_program.c @@ -508,11 +508,11 @@ setup_stateobj(struct fd_ringbuffer *ring, OUT_RING(ring, 0xfc); /* XXX */ OUT_PKT4(ring, REG_A6XX_HLSQ_UNKNOWN_B980, 1); - OUT_RING(ring, s[FS].v->total_in > 0 ? 3 : 1); + OUT_RING(ring, enable_varyings ? 3 : 1); OUT_PKT4(ring, REG_A6XX_SP_FS_CTRL_REG0, 1); OUT_RING(ring, A6XX_SP_FS_CTRL_REG0_THREADSIZE(fssz) | - COND(s[FS].v->total_in > 0, A6XX_SP_FS_CTRL_REG0_VARYING) | + COND(enable_varyings, A6XX_SP_FS_CTRL_REG0_VARYING) | COND(s[FS].v->frag_coord, A6XX_SP_FS_CTRL_REG0_VARYING) | 0x1000000 | A6XX_SP_FS_CTRL_REG0_FULLREGFOOTPRINT(s[FS].i->max_reg + 1) | -- 2.30.2