diff options
author | Rob Clark <[email protected]> | 2014-12-06 16:29:53 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-12-09 18:03:09 -0500 |
commit | 6a5ba23fa6156abb7d643080e2a2b477aa1ed559 (patch) | |
tree | 170514d6d42af63533020260f3da54cdb8fcb6f9 /src/gallium/drivers/freedreno | |
parent | eb6fd3b8eb9c19bb501a091d1696e5db1ac4c690 (diff) |
freedreno/a4xx: temp hack for FLAT varyings
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r-- | src/gallium/drivers/freedreno/a4xx/fd4_program.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/a4xx/fd4_program.c b/src/gallium/drivers/freedreno/a4xx/fd4_program.c index 4f2a88f8722..76cadcccfa5 100644 --- a/src/gallium/drivers/freedreno/a4xx/fd4_program.c +++ b/src/gallium/drivers/freedreno/a4xx/fd4_program.c @@ -431,6 +431,25 @@ fd4_program_emit(struct fd_ringbuffer *ring, struct fd4_emit *emit) } } + /* HACK: looks like we need to do int varyings in the frag + * shader on a4xx (no flatshad reg?): + * + * (sy)(ss)nop + * (sy)ldlv.u32 r0.x,l[r0.x], 1 + * ldlv.u32 r0.y,l[r0.x+1], 1 + * (ss)bary.f (ei)r63.x, 0, r0.x + * (ss)(rpt1)cov.s32f16 hr0.x, (r)r0.x + * (rpt5)nop + * sam (f16)(xyzw)hr0.x, hr0.x, s#0, t#0 + * + * for now, don't set FLAT on vinterp[], since that + * at least works well enough for pure float impl (ie. + * pre glsl130).. we'll have to do a bit more work to + * handle this properly: + */ + for (i = 0; i < ARRAY_SIZE(vinterp); i++) + vinterp[i] = 0; + OUT_PKT0(ring, REG_A4XX_VPC_ATTR, 2); OUT_RING(ring, A4XX_VPC_ATTR_TOTALATTR(s[FS].v->total_in) | A4XX_VPC_ATTR_THRDASSIGN(1) | |