mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
r300: Apply writemask when clearing stencil buffer
This fixes the glean/maskedClear test.
This commit is contained in:
parent
731686b713
commit
7cb63a25de
1 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,8 @@ static void r300ClearBuffer(r300ContextPtr r300, int flags, int buffer)
|
|||
|
||||
e32(t1);
|
||||
e32(t2);
|
||||
e32(R300_STENCILWRITEMASK_MASK | r300->state.stencil.clear);
|
||||
e32(((ctx->Stencil.WriteMask[0] & R300_STENCILREF_MASK) << R300_STENCILWRITEMASK_SHIFT) |
|
||||
(r300->state.stencil.clear & R300_STENCILREF_MASK));
|
||||
}
|
||||
|
||||
cmd2 = (drm_r300_cmd_header_t *) r300AllocCmdBuf(r300, 9, __FUNCTION__);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue