summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-11-03 15:57:47 -0700
committerJason Ekstrand <[email protected]>2017-11-13 21:51:59 -0800
commit6830ba0d3be8df12572622839743c41b4f294825 (patch)
tree8d20bae6286db7069ec85c5b5dab80b6ff7a0887 /src/mesa
parent4b1e70cc57d7ff5f465544644b2180dee1490cee (diff)
i965: Add stencil buffers to cache set regardless of stencil texturing
We may access them as a texture using blorp regardless of whether or not stencil texturing is enabled. Reviewed-by: Kenneth Graunke <[email protected]> Cc: [email protected]
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c
index 809e7221b2d..10b62982a9e 100644
--- a/src/mesa/drivers/dri/i965/brw_draw.c
+++ b/src/mesa/drivers/dri/i965/brw_draw.c
@@ -564,10 +564,8 @@ brw_postdraw_set_buffers_need_resolve(struct brw_context *brw)
brw_render_cache_set_add_bo(brw, depth_irb->mt->bo);
}
- if (ctx->Extensions.ARB_stencil_texturing &&
- stencil_irb && brw->stencil_write_enabled) {
+ if (stencil_irb && brw->stencil_write_enabled)
brw_render_cache_set_add_bo(brw, stencil_irb->mt->bo);
- }
for (unsigned i = 0; i < fb->_NumColorDrawBuffers; i++) {
struct intel_renderbuffer *irb =