diff options
author | Nanley Chery <[email protected]> | 2018-06-07 23:55:44 -0700 |
---|---|---|
committer | Nanley Chery <[email protected]> | 2018-07-13 08:31:21 -0700 |
commit | 0eafe44ba7980c0a4bf62c9b87e6d0d596a58afa (patch) | |
tree | 269d38de787e84d9aefc0942cbdc38e9f8c5faa6 | |
parent | cef7ce07fa940edc30858e261423036703fda1ef (diff) |
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 <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |