From: Nanley Chery Date: Fri, 8 Jun 2018 06:55:44 +0000 (-0700) Subject: i965/miptree: Set the r8stencil flag in map_depthstencil X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0eafe44ba7980c0a4bf62c9b87e6d0d596a58afa;p=mesa.git i965/miptree: Set the r8stencil flag in map_depthstencil 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 Reviewed-by: Topi Pohjolainen --- diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c index 90ebad412ea..d2218402182 100644 --- a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c @@ -3470,7 +3470,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