i965: Remove unused hw_must_use_separate_stencil
authorBen Widawsky <benjamin.widawsky@intel.com>
Wed, 30 Dec 2015 17:47:17 +0000 (09:47 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Thu, 14 Jan 2016 00:41:04 +0000 (16:41 -0800)
I spotted this while looking for what needs updating in future platforms.

I'm too lazy to go through the git logs, but it was probably missed by Jason
when all the brw refactoring happened.

Signed-off-by: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_screen.c
src/mesa/drivers/dri/i965/intel_screen.h

index 4298252c9b7f356bf565f8f04ad236d4699d7f94..9ba33396d3627cd3b78939e06f51d65f4360346e 100644 (file)
@@ -812,7 +812,7 @@ brwCreateContext(gl_api api,
    brw->needs_unlit_centroid_workaround =
       devinfo->needs_unlit_centroid_workaround;
 
-   brw->must_use_separate_stencil = screen->hw_must_use_separate_stencil;
+   brw->must_use_separate_stencil = devinfo->must_use_separate_stencil;
    brw->has_swizzling = screen->hw_has_swizzling;
 
    brw->vs.base.stage = MESA_SHADER_VERTEX;
index a9f58b09422dd3fbd291b4f31c291bc74d17611b..e1e1e62d26a6047709130260730462722ecc3f05 100644 (file)
@@ -1449,8 +1449,6 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp)
    if (INTEL_DEBUG & DEBUG_AUB)
       drm_intel_bufmgr_gem_set_aub_dump(intelScreen->bufmgr, true);
 
-   intelScreen->hw_must_use_separate_stencil = intelScreen->devinfo->gen >= 7;
-
    intelScreen->hw_has_swizzling = intel_detect_swizzling(intelScreen);
    intelScreen->hw_has_timestamp = intel_detect_timestamp(intelScreen);
 
index 96bb995d66f9a90137b7706f1b20c0e798bac148..3a5f22c3a6796f474c410e5d65eeeb26d78e90f3 100644 (file)
@@ -46,8 +46,6 @@ struct intel_screen
 
    bool no_hw;
 
-   bool hw_must_use_separate_stencil;
-
    bool hw_has_swizzling;
 
    int hw_has_timestamp;