i965/miptree: Set the r8stencil flag in map_depthstencil
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 8 Jun 2018 06:55:44 +0000 (23:55 -0700)
committerNanley Chery <nanley.g.chery@intel.com>
Fri, 13 Jul 2018 15:31:21 +0000 (08:31 -0700)
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@intel.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c

index 90ebad412ea65bd21f63feac5bdd926823e57b02..d22184021822fd2cfc2c85921a95f46b91e1c9c8 100644 (file)
@@ -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