Signed-off-by: Rob Clark <robdclark@gmail.com>
struct pipe_stencil_ref *sr = &ctx->stencil_ref;
OUT_PKT4(ring, REG_A6XX_RB_STENCILREF, 3);
- OUT_RING(ring, A6XX_RB_STENCILREF_REF(sr->ref_value[0])); // TODO bf?
+ OUT_RING(ring, A6XX_RB_STENCILREF_REF(sr->ref_value[0]) |
+ A6XX_RB_STENCILREF_BFREF(sr->ref_value[1]));
OUT_RING(ring, zsa->rb_stencilmask);
OUT_RING(ring, zsa->rb_stencilwrmask);
}
A6XX_RB_STENCIL_CONTROL_ZPASS_BF(fd_stencil_op(bs->zpass_op)) |
A6XX_RB_STENCIL_CONTROL_ZFAIL_BF(fd_stencil_op(bs->zfail_op));
- // TODO backface stencil state?
+ so->rb_stencilmask |= A6XX_RB_STENCILMASK_BFMASK(bs->valuemask);
+ so->rb_stencilwrmask |= A6XX_RB_STENCILWRMASK_BFWRMASK(bs->writemask);
}
}