Mesa (master): i915: Kill intel_context::hw_stencil

Ville Syrjala vsyrjala at kemper.freedesktop.org
Thu Nov 13 17:15:43 UTC 2014


Module: Mesa
Branch: master
Commit: 3746ff89bc5c0b84119e8aff3afab39842fbb40e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3746ff89bc5c0b84119e8aff3afab39842fbb40e

Author: Ville Syrjälä <ville.syrjala at linux.intel.com>
Date:   Sun Jul  6 15:10:44 2014 +0300

i915: Kill intel_context::hw_stencil

ctx.hw_stencil is not used anywhere so kill it.

Reviewed-by: Eric Anholt <eric at anholt.net>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

---

 src/mesa/drivers/dri/i915/intel_context.c |    1 -
 src/mesa/drivers/dri/i915/intel_context.h |    1 -
 2 files changed, 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c
index 3104776..12a1d2b 100644
--- a/src/mesa/drivers/dri/i915/intel_context.c
+++ b/src/mesa/drivers/dri/i915/intel_context.c
@@ -507,7 +507,6 @@ intelInitContext(struct intel_context *intel,
 
    _mesa_meta_init(ctx);
 
-   intel->hw_stencil = mesaVis && mesaVis->stencilBits && mesaVis->depthBits == 24;
    intel->hw_stipple = 1;
 
    intel->RenderIndex = ~0;
diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h
index fccf821..c314594 100644
--- a/src/mesa/drivers/dri/i915/intel_context.h
+++ b/src/mesa/drivers/dri/i915/intel_context.h
@@ -226,7 +226,6 @@ struct intel_context
 
    GLfloat polygon_offset_scale;        /* dependent on depth_scale, bpp */
 
-   bool hw_stencil;
    bool hw_stipple;
    bool no_rast;
    bool always_flush_batch;




More information about the mesa-commit mailing list