summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_draw.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-09-05 14:38:13 -0700
committerEric Anholt <[email protected]>2014-09-09 07:29:16 -0700
commit5774f164532ac85d213469f688ea87e1da16d444 (patch)
tree4de34d1678c1a4755a252186acd8fa36b9ed71e4 /src/gallium/drivers/vc4/vc4_draw.c
parentfd6e4fccade0a5e2a4877d01a57c255a47a06200 (diff)
vc4: Fill out the stencil clear field.
The rest of stencil handling isn't done yet, but it documents an extra cl_u8(0) and helps make it obvious why we don't need to format clear_depth the same way the depth/stencil buffer is formatted.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_draw.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_draw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index d1035bb30ab..90d98b37b01 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -231,6 +231,9 @@ vc4_clear(struct pipe_context *pctx, unsigned buffers,
vc4->clear_depth = util_pack_z(PIPE_FORMAT_Z24X8_UNORM, depth);
}
+ if (buffers & PIPE_CLEAR_STENCIL)
+ vc4->clear_stencil = stencil;
+
vc4->cleared |= buffers;
vc4->resolve |= buffers;