Mesa (master): intel/intel_context.c: Remove unused functions
Chad Versace
chadversary at kemper.freedesktop.org
Wed Jun 8 17:07:54 UTC 2011
Module: Mesa
Branch: master
Commit: beb8b7da20c862549b96a500226caf3a610342d9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=beb8b7da20c862549b96a500226caf3a610342d9
Author: Chad Versace <chad at chad-versace.us>
Date: Wed Jun 1 15:14:18 2011 -0700
intel/intel_context.c: Remove unused functions
Remove functions intel_override_hiz() and
intel_override_separate_stencil(). They are now located in intel_screen.c.
CC: Ian Romanick <idr at freedesktop.org>
CC: Kristian Høgsberg <krh at bitplanet.net>
Acked-by: Eric Anholt <eric at anholt.net>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
Signed-off-by: Chad Versace <chad at chad-versace.us>
---
src/mesa/drivers/dri/intel/intel_context.c | 48 ----------------------------
1 files changed, 0 insertions(+), 48 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 22704a3..0259891 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -610,54 +610,6 @@ intelInitDriverFunctions(struct dd_function_table *functions)
intel_init_syncobj_functions(functions);
}
-/**
- * Override intel->has_hiz with environment variable INTEL_HIZ.
- *
- * Valid values for INTEL_HIZ are "0" and "1". If an invalid valid value is
- * encountered, a warning is emitted and INTEL_HIZ is ignored.
- */
-static void
-intel_override_hiz(struct intel_context *intel)
-{
- const char *s = getenv("INTEL_HIZ");
- if (!s) {
- return;
- } else if (!strncmp("0", s, 2)) {
- intel->has_hiz = false;
- } else if (!strncmp("1", s, 2)) {
- intel->has_hiz = true;
- } else {
- _mesa_warning(&intel->ctx,
- "env variable INTEL_HIZ=\"%s\" has invalid value and "
- "is ignored", s);
- }
-}
-
-/**
- * Override intel->has_separate_stencil with environment variable
- * INTEL_SEPARATE_STENCIL.
- *
- * Valid values for INTEL_SEPARATE_STENCIL are "0" and "1". If an invalid
- * value is encountered, a warning is emitted and INTEL_SEPARATE_STENCIL is
- * ignored.
- */
-static void
-intel_override_separate_stencil(struct intel_context *intel)
-{
- const char *s = getenv("INTEL_SEPARATE_STENCIL");
- if (!s) {
- return;
- } else if (!strncmp("0", s, 2)) {
- intel->has_separate_stencil = false;
- } else if (!strncmp("1", s, 2)) {
- intel->has_separate_stencil = true;
- } else {
- _mesa_warning(&intel->ctx,
- "env variable INTEL_SEPARATE_STENCIL=\"%s\" has invalid "
- "value and is ignored", s);
- }
-}
-
GLboolean
intelInitContext(struct intel_context *intel,
int api,
More information about the mesa-commit
mailing list