diff options
author | Rob Clark <[email protected]> | 2016-12-01 15:02:14 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-12-06 18:01:31 -0500 |
commit | b337099849e0c1f35adb2480c188d6a7045d5b44 (patch) | |
tree | 7cb0c95b93056f5ec4198a2a4bb7a114b5e59969 /src | |
parent | f143eeaffa3c0df7acd6a4c2816a6444de44b2fc (diff) |
freedreno/a5xx: fix fragface
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/freedreno/a5xx/fd5_program.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a5xx/fd5_program.c b/src/gallium/drivers/freedreno/a5xx/fd5_program.c index f9ff8f52bba..27e4e43f154 100644 --- a/src/gallium/drivers/freedreno/a5xx/fd5_program.c +++ b/src/gallium/drivers/freedreno/a5xx/fd5_program.c @@ -464,7 +464,8 @@ fd5_program_emit(struct fd_ringbuffer *ring, struct fd5_emit *emit, A5XX_GRAS_CNTL_YCOORD | A5XX_GRAS_CNTL_ZCOORD | A5XX_GRAS_CNTL_WCOORD | - A5XX_GRAS_CNTL_UNK3)); + A5XX_GRAS_CNTL_UNK3) | + COND(s[FS].v->frag_face, A5XX_GRAS_CNTL_UNK3)); OUT_PKT4(ring, REG_A5XX_RB_RENDER_CONTROL0, 3); OUT_RING(ring, @@ -473,7 +474,8 @@ fd5_program_emit(struct fd_ringbuffer *ring, struct fd5_emit *emit, A5XX_RB_RENDER_CONTROL0_YCOORD | A5XX_RB_RENDER_CONTROL0_ZCOORD | A5XX_RB_RENDER_CONTROL0_WCOORD | - A5XX_RB_RENDER_CONTROL0_UNK3)); + A5XX_RB_RENDER_CONTROL0_UNK3) | + COND(s[FS].v->frag_face, A5XX_RB_RENDER_CONTROL0_UNK3)); OUT_RING(ring, COND(s[FS].v->frag_face, A5XX_RB_RENDER_CONTROL1_FACENESS)); |