aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-03-26 10:00:12 -0400
committerRob Clark <[email protected]>2019-03-28 14:36:23 -0400
commitc557fcaf2baee27dc492ddc910b07f4adc5666b0 (patch)
tree1e977f3b89dee729bc81720c18c0e17fabb93c02 /src
parentee8370c766c46752de6fa6dbb58c63a6ed5c4310 (diff)
freedreno/a6xx: small cleanup
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_program.c4
1 files 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) |