diff options
author | Rob Clark <[email protected]> | 2018-09-14 16:44:32 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-09-27 15:31:56 -0400 |
commit | b65b6f7606cc381b7c3874f49eb14b738a60f9b6 (patch) | |
tree | 8ffedd5ea7f057bce9ed566894b6c597073c432c /src/gallium/drivers/freedreno/a6xx/fd6_zsa.c | |
parent | 93db15d30068a8dc4084bdb3ba58573b426836d7 (diff) |
freedreno/a6xx: backface stencil state
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a6xx/fd6_zsa.c')
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_zsa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_zsa.c b/src/gallium/drivers/freedreno/a6xx/fd6_zsa.c index 84a5d21d41c..b7ce799eb40 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_zsa.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_zsa.c @@ -101,7 +101,8 @@ fd6_zsa_state_create(struct pipe_context *pctx, 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); } } |