[Mesa-dev] [PATCH 02/13] i965/miptree: Set the r8stencil flag in map_depthstencil
Nanley Chery
nanleychery at gmail.com
Tue Jun 12 19:21:54 UTC 2018
Found by initializing the r8stencil_needs_update to false in
make_separate_stencil_surface.
Prevents regressing the piglit test arb_stencil_texturing-draw, later on
in the series.
Cc: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
index 765a830a6aa..c7efcad3420 100644
--- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
+++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c
@@ -3474,7 +3474,9 @@ intel_miptree_map_depthstencil(struct brw_context *brw,
if (!map->buffer)
return;
- intel_miptree_access_raw(brw, mt, level, slice,
+ intel_miptree_access_raw(brw, z_mt, level, slice,
+ map->mode & GL_MAP_WRITE_BIT);
+ intel_miptree_access_raw(brw, s_mt, level, slice,
map->mode & GL_MAP_WRITE_BIT);
/* One of either READ_BIT or WRITE_BIT or both is set. READ_BIT implies no
--
2.17.0
More information about the mesa-dev
mailing list