mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
nouveau: only enable stencil func if the visual has stencil bits
The _Enabled property already has the relevant information. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
79959e5de5
commit
3c81de5851
2 changed files with 2 additions and 2 deletions
|
|
@ -175,7 +175,7 @@ nv04_emit_control(struct gl_context *ctx, int emit)
|
|||
if (ctx->Stencil.WriteMask[0])
|
||||
nv04->ctrl[0] |= NV04_MULTITEX_TRIANGLE_CONTROL0_STENCIL_WRITE;
|
||||
|
||||
if (ctx->Stencil.Enabled)
|
||||
if (ctx->Stencil._Enabled)
|
||||
nv04->ctrl[1] |= NV04_MULTITEX_TRIANGLE_CONTROL1_STENCIL_ENABLE;
|
||||
|
||||
nv04->ctrl[1] |= get_comparison_op(ctx->Stencil.Function[0]) << 4 |
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ nv10_emit_stencil_func(struct gl_context *ctx, int emit)
|
|||
struct nouveau_pushbuf *push = context_push(ctx);
|
||||
|
||||
BEGIN_NV04(push, NV10_3D(STENCIL_ENABLE), 1);
|
||||
PUSH_DATAb(push, ctx->Stencil.Enabled);
|
||||
PUSH_DATAb(push, ctx->Stencil._Enabled);
|
||||
|
||||
BEGIN_NV04(push, NV10_3D(STENCIL_FUNC_FUNC), 3);
|
||||
PUSH_DATA (push, nvgl_comparison_op(ctx->Stencil.Function[0]));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue