diff options
author | Rob Clark <[email protected]> | 2018-09-13 18:35:22 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-09-27 15:45:44 -0400 |
commit | 6530fcc4a7fe6fa0d67ebc33b213e4497f634169 (patch) | |
tree | 74d4170786dee19860c318373ce47f22f0642e72 /src/gallium/drivers | |
parent | 919741b8d5357b2a061a48f7142c1e24be8656d4 (diff) |
freedreno/a6xx: fix gl_FragCoord.w
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_program.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_program.c b/src/gallium/drivers/freedreno/a6xx/fd6_program.c index 21961f06bda..b2354de7e30 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_program.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_program.c @@ -544,7 +544,9 @@ fd6_program_emit(struct fd_context *ctx, struct fd_ringbuffer *ring, OUT_PKT4(ring, REG_A6XX_GRAS_CNTL, 1); OUT_RING(ring, COND(enable_varyings, A6XX_GRAS_CNTL_VARYING) | - COND(s[FS].v->frag_coord, A6XX_GRAS_CNTL_XCOORD | + COND(s[FS].v->frag_coord, + A6XX_GRAS_CNTL_UNK3 | + A6XX_GRAS_CNTL_XCOORD | A6XX_GRAS_CNTL_YCOORD | A6XX_GRAS_CNTL_ZCOORD | A6XX_GRAS_CNTL_WCOORD)); @@ -552,7 +554,9 @@ fd6_program_emit(struct fd_context *ctx, struct fd_ringbuffer *ring, OUT_PKT4(ring, REG_A6XX_RB_RENDER_CONTROL0, 2); OUT_RING(ring, COND(enable_varyings, A6XX_RB_RENDER_CONTROL0_VARYING | A6XX_RB_RENDER_CONTROL0_UNK10) | - COND(s[FS].v->frag_coord, A6XX_RB_RENDER_CONTROL0_XCOORD | + COND(s[FS].v->frag_coord, + A6XX_RB_RENDER_CONTROL0_UNK3 | + A6XX_RB_RENDER_CONTROL0_XCOORD | A6XX_RB_RENDER_CONTROL0_YCOORD | A6XX_RB_RENDER_CONTROL0_ZCOORD | A6XX_RB_RENDER_CONTROL0_WCOORD)); |