summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Justen <jordan.l.justen@intel.com>2016-06-11 16:46:13 -0700
committerJordan Justen <jordan.l.justen@intel.com>2016-08-18 16:33:49 -0700
commit83875e466780a8398b5365c736ac198e446c260c (patch)
treeec9681ceecff3b25f5203f5e6a9270ff364d8941
parent09adb58167339ce03def72c0dfd2b7b9267b3144 (diff)
i965/gen7: Copy stencil when sampling the stencil texture
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index d8a3723dee6..fb8523feded 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -235,6 +235,11 @@ intel_update_state(struct gl_context * ctx, GLuint new_state)
0 : INTEL_MIPTREE_IGNORE_CCS_E;
intel_miptree_resolve_color(brw, tex_obj->mt, flags);
brw_render_cache_set_check_flush(brw, tex_obj->mt->bo);
+
+ if (tex_obj->base.StencilSampling ||
+ tex_obj->mt->format == MESA_FORMAT_S_UINT8) {
+ intel_miptree_stencil_texturing(brw, tex_obj->mt);
+ }
}
/* Resolve color for each active shader image. */