diff options
author | Kenneth Graunke <[email protected]> | 2013-07-04 12:28:59 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-10-13 00:10:43 -0700 |
commit | 9d490c172b023e9454714ca7f773996a0261e56a (patch) | |
tree | bb6c281f44b5b26cba1ba2feea902d5dd89ee7a4 /src/mesa | |
parent | 6e9f427ed8a20d78e7d832b163d757827dd3e74f (diff) |
i965: Delete the INTEL_SEPARATE_STENCIL override.
This option was useful during initial development, but it's been ages
since I've heard of anyone using it. Plus, Gen7+ mandates separate
stencil, so it was really only useful on Sandybridge anyway.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 7176c8a65be..1cb297e53f2 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1008,31 +1008,6 @@ intel_init_bufmgr(struct intel_screen *intelScreen) return true; } -/** - * Override intel_screen.hw_has_separate_stencil with environment variable - * INTEL_SEPARATE_STENCIL. - * - * Valid values for INTEL_SEPARATE_STENCIL are "0" and "1". If an invalid - * valid value is encountered, a warning is emitted and INTEL_SEPARATE_STENCIL - * is ignored. - */ -static void -intel_override_separate_stencil(struct intel_screen *screen) -{ - const char *s = getenv("INTEL_SEPARATE_STENCIL"); - if (!s) { - return; - } else if (!strncmp("0", s, 2)) { - screen->hw_has_separate_stencil = false; - } else if (!strncmp("1", s, 2)) { - screen->hw_has_separate_stencil = true; - } else { - fprintf(stderr, - "warning: env variable INTEL_SEPARATE_STENCIL=\"%s\" has " - "invalid value and is ignored", s); - } -} - static bool intel_detect_swizzling(struct intel_screen *screen) { @@ -1280,8 +1255,6 @@ __DRIconfig **intelInitScreen2(__DRIscreen *psp) else if (!success && intelScreen->gen >= 6) intelScreen->hw_has_llc = true; - intel_override_separate_stencil(intelScreen); - intelScreen->hw_has_swizzling = intel_detect_swizzling(intelScreen); set_max_gl_versions(intelScreen); |