diff options
author | Nanley Chery <[email protected]> | 2018-06-08 13:24:09 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2018-07-13 08:31:21 -0700 |
commit | 63d428dc17eaf7cd574abd76d2e351ef2713799a (patch) | |
tree | bf485186a7ffdb499c32e7ffdc464247f3c45376 | |
parent | be07cc43a2cd315a275e4b2f0cb384798c4a0dd4 (diff) |
i965/draw: Fix adding the stencil bo to the depth cache
Fix the case where stencil writes are enabled on a depth stencil
texture. Found by inspection.
v2: Fix message to allow for depth stencil writes (Topi).
Reviewed-by: Topi Pohjolainen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 271456e0f7d..71461d7b0a7 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -623,10 +623,10 @@ brw_postdraw_set_buffers_need_resolve(struct brw_context *brw) } if (stencil_irb && brw->stencil_write_enabled) { - brw_depth_cache_add_bo(brw, stencil_irb->mt->bo); struct intel_mipmap_tree *stencil_mt = stencil_irb->mt->stencil_mt != NULL ? stencil_irb->mt->stencil_mt : stencil_irb->mt; + brw_depth_cache_add_bo(brw, stencil_mt->bo); intel_miptree_finish_write(brw, stencil_mt, stencil_irb->mt_level, stencil_irb->mt_layer, stencil_irb->layer_count, ISL_AUX_USAGE_NONE); |