diff options
author | Jordan Justen <[email protected]> | 2016-06-11 16:27:48 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2016-08-26 10:09:22 -0700 |
commit | 7bd87c1e6e168b048cdf2318af8848d07caa6706 (patch) | |
tree | 0029820bdb3e215e305cc3903d31b3a78a47aaeb /src/mesa/drivers/dri | |
parent | 2a9c65a01d133fe196fd6e40affb431295d0b9cc (diff) |
i965: Track that the stencil data was updated when clearing
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_clear.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_clear.c b/src/mesa/drivers/dri/i965/brw_clear.c index 1dfff090c08..18b8fcbe200 100644 --- a/src/mesa/drivers/dri/i965/brw_clear.c +++ b/src/mesa/drivers/dri/i965/brw_clear.c @@ -239,6 +239,14 @@ brw_clear(struct gl_context *ctx, GLbitfield mask) } } + if (mask & BUFFER_BIT_STENCIL) { + struct intel_renderbuffer *stencil_irb = + intel_get_renderbuffer(fb, BUFFER_STENCIL); + struct intel_mipmap_tree *mt = stencil_irb->mt; + if (mt && mt->stencil_mt) + mt->stencil_mt->r8stencil_needs_update = true; + } + /* BLORP is currently only supported on Gen6+. */ if (brw->gen >= 6 && (mask & BUFFER_BITS_COLOR)) { const bool encode_srgb = ctx->Color.sRGBEnabled; |