diff options
author | Timothy Arceri <tarceri@itsqueeze.com> | 2018-08-15 13:56:53 +1000 |
---|---|---|
committer | Timothy Arceri <tarceri@itsqueeze.com> | 2018-08-21 09:19:01 +1000 |
commit | c5f863f2fddf4ae289749b893d253078871f0af7 (patch) | |
tree | ad122a605d1a542b45ce1d712635dd73c2457a5e /src | |
parent | 02e32c92a2ae28894cfd818941a47f24717511a7 (diff) | |
download | mesa-c5f863f2fddf4ae289749b893d253078871f0af7.tar.gz mesa-c5f863f2fddf4ae289749b893d253078871f0af7.tar.bz2 mesa-c5f863f2fddf4ae289749b893d253078871f0af7.zip |
mesa: drop legacy no_rast dri option
Add enviroment var overrides to legacy drivers instead.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_context.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_screen.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 1 | ||||
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_context.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_context.c | 2 | ||||
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_screen.c | 6 | ||||
-rw-r--r-- | src/util/xmlpool/ca.po | 4 | ||||
-rw-r--r-- | src/util/xmlpool/de.po | 4 | ||||
-rw-r--r-- | src/util/xmlpool/es.po | 4 | ||||
-rw-r--r-- | src/util/xmlpool/fr.po | 4 | ||||
-rw-r--r-- | src/util/xmlpool/nl.po | 4 | ||||
-rw-r--r-- | src/util/xmlpool/sv.po | 4 | ||||
-rw-r--r-- | src/util/xmlpool/t_options.h | 5 |
13 files changed, 3 insertions, 40 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c index 728d6d58699..abc16d47491 100644 --- a/src/mesa/drivers/dri/i915/intel_context.c +++ b/src/mesa/drivers/dri/i915/intel_context.c @@ -535,7 +535,7 @@ intelInitContext(struct intel_context *intel, intel->prim.primitive = ~0; /* Force all software fallbacks */ - if (driQueryOptionb(&intel->optionCache, "no_rast")) { + if (getenv("INTEL_NO_RAST")) { fprintf(stderr, "disabling 3D rasterization\n"); intel->no_rast = 1; } diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c index 3d4f7ae94aa..50934c10c48 100644 --- a/src/mesa/drivers/dri/i915/intel_screen.c +++ b/src/mesa/drivers/dri/i915/intel_screen.c @@ -65,7 +65,6 @@ DRI_CONF_BEGIN DRI_CONF_SECTION_QUALITY DRI_CONF_SECTION_END DRI_CONF_SECTION_DEBUG - DRI_CONF_NO_RAST("false") DRI_CONF_ALWAYS_FLUSH_BATCH("false") DRI_CONF_ALWAYS_FLUSH_CACHE("false") DRI_CONF_DISABLE_THROTTLING("false") diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 2222e57bbf4..923f9be3fbb 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -74,7 +74,6 @@ DRI_CONF_BEGIN DRI_CONF_SECTION_END DRI_CONF_SECTION_DEBUG - DRI_CONF_NO_RAST("false") DRI_CONF_ALWAYS_FLUSH_BATCH("false") DRI_CONF_ALWAYS_FLUSH_CACHE("false") DRI_CONF_DISABLE_THROTTLING("false") diff --git a/src/mesa/drivers/dri/r200/r200_context.c b/src/mesa/drivers/dri/r200/r200_context.c index cfdc9b84e87..392c10fb74d 100644 --- a/src/mesa/drivers/dri/r200/r200_context.c +++ b/src/mesa/drivers/dri/r200/r200_context.c @@ -383,7 +383,7 @@ GLboolean r200CreateContext( gl_api api, (getenv("R200_GART_CLIENT_TEXTURES") != 0); tcl_mode = driQueryOptioni(&rmesa->radeon.optionCache, "tcl_mode"); - if (driQueryOptionb(&rmesa->radeon.optionCache, "no_rast")) { + if (getenv("R200_NO_RAST")) { fprintf(stderr, "disabling 3D acceleration\n"); FALLBACK(rmesa, R200_FALLBACK_DISABLE, 1); } diff --git a/src/mesa/drivers/dri/radeon/radeon_context.c b/src/mesa/drivers/dri/radeon/radeon_context.c index e1e87640ef0..db1cc7274db 100644 --- a/src/mesa/drivers/dri/radeon/radeon_context.c +++ b/src/mesa/drivers/dri/radeon/radeon_context.c @@ -332,7 +332,7 @@ r100CreateContext( gl_api api, rmesa->radeon.do_usleeps = (fthrottle_mode == DRI_CONF_FTHROTTLE_USLEEPS); tcl_mode = driQueryOptioni(&rmesa->radeon.optionCache, "tcl_mode"); - if (driQueryOptionb(&rmesa->radeon.optionCache, "no_rast")) { + if (getenv("RADEON_NO_RAST")) { fprintf(stderr, "disabling 3D acceleration\n"); FALLBACK(rmesa, RADEON_FALLBACK_DISABLE, 1); } else if (tcl_mode == DRI_CONF_TCL_SW || diff --git a/src/mesa/drivers/dri/radeon/radeon_screen.c b/src/mesa/drivers/dri/radeon/radeon_screen.c index 009d7953a24..5637361a916 100644 --- a/src/mesa/drivers/dri/radeon/radeon_screen.c +++ b/src/mesa/drivers/dri/radeon/radeon_screen.c @@ -95,9 +95,6 @@ DRI_CONF_BEGIN DRI_CONF_ROUND_MODE(DRI_CONF_ROUND_TRUNC) DRI_CONF_DITHER_MODE(DRI_CONF_DITHER_XERRORDIFF) DRI_CONF_SECTION_END - DRI_CONF_SECTION_DEBUG - DRI_CONF_NO_RAST("false") - DRI_CONF_SECTION_END DRI_CONF_END }; @@ -128,9 +125,6 @@ DRI_CONF_BEGIN DRI_CONF_DITHER_MODE(DRI_CONF_DITHER_XERRORDIFF) DRI_CONF_TEXTURE_BLEND_QUALITY(1.0,"0.0:1.0") DRI_CONF_SECTION_END - DRI_CONF_SECTION_DEBUG - DRI_CONF_NO_RAST("false") - DRI_CONF_SECTION_END DRI_CONF_END }; #endif diff --git a/src/util/xmlpool/ca.po b/src/util/xmlpool/ca.po index 55d83f903fb..8a338c0e33c 100644 --- a/src/util/xmlpool/ca.po +++ b/src/util/xmlpool/ca.po @@ -39,10 +39,6 @@ msgstr "" msgid "Debugging" msgstr "Depuració" -#: t_options.h:60 -msgid "Disable 3D acceleration" -msgstr "Deshabilita l'acceleració 3D" - #: t_options.h:70 msgid "Enable flushing batchbuffer after each draw call" msgstr "Habilita el buidatge del batchbuffer després de cada trucada de dibuix" diff --git a/src/util/xmlpool/de.po b/src/util/xmlpool/de.po index 5490940f5ee..9b7059ba8ad 100644 --- a/src/util/xmlpool/de.po +++ b/src/util/xmlpool/de.po @@ -21,10 +21,6 @@ msgstr "" msgid "Debugging" msgstr "Fehlersuche" -#: t_options.h:60 -msgid "Disable 3D acceleration" -msgstr "3D-Beschleunigung abschalten" - #: t_options.h:70 msgid "Enable flushing batchbuffer after each draw call" msgstr "Aktiviere sofortige Leerung des Stapelpuffers nach jedem Zeichenaufruf" diff --git a/src/util/xmlpool/es.po b/src/util/xmlpool/es.po index 7c9986cf4f0..baf6b6e2ec6 100644 --- a/src/util/xmlpool/es.po +++ b/src/util/xmlpool/es.po @@ -24,10 +24,6 @@ msgstr "" msgid "Debugging" msgstr "Depuración" -#: t_options.h:60 -msgid "Disable 3D acceleration" -msgstr "Deshabilitar aceleración 3D" - #: t_options.h:70 msgid "Enable flushing batchbuffer after each draw call" msgstr "Habilitar vaciado del batchbuffer después de cada llamada de dibujo" diff --git a/src/util/xmlpool/fr.po b/src/util/xmlpool/fr.po index 44c2990e897..23d8b4eaef9 100644 --- a/src/util/xmlpool/fr.po +++ b/src/util/xmlpool/fr.po @@ -21,10 +21,6 @@ msgstr "" msgid "Debugging" msgstr "Debogage" -#: t_options.h:60 -msgid "Disable 3D acceleration" -msgstr "Désactiver l'accélération 3D" - #: t_options.h:70 msgid "Enable flushing batchbuffer after each draw call" msgstr "" diff --git a/src/util/xmlpool/nl.po b/src/util/xmlpool/nl.po index e24afb2c536..8d3d2e11ea0 100644 --- a/src/util/xmlpool/nl.po +++ b/src/util/xmlpool/nl.po @@ -21,10 +21,6 @@ msgstr "" msgid "Debugging" msgstr "Debuggen" -#: t_options.h:60 -msgid "Disable 3D acceleration" -msgstr "3D versnelling uitschakelen" - #: t_options.h:70 msgid "Enable flushing batchbuffer after each draw call" msgstr "" diff --git a/src/util/xmlpool/sv.po b/src/util/xmlpool/sv.po index 4e1632442ac..0b600174583 100644 --- a/src/util/xmlpool/sv.po +++ b/src/util/xmlpool/sv.po @@ -21,10 +21,6 @@ msgstr "" msgid "Debugging" msgstr "Felsökning" -#: t_options.h:60 -msgid "Disable 3D acceleration" -msgstr "Inaktivera 3D-accelerering" - #: t_options.h:70 msgid "Enable flushing batchbuffer after each draw call" msgstr "" diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h index ffcf6f85d39..fdb3a044771 100644 --- a/src/util/xmlpool/t_options.h +++ b/src/util/xmlpool/t_options.h @@ -55,11 +55,6 @@ DRI_CONF_SECTION_BEGIN \ DRI_CONF_DESC(en,gettext("Debugging")) -#define DRI_CONF_NO_RAST(def) \ -DRI_CONF_OPT_BEGIN_B(no_rast, def) \ - DRI_CONF_DESC(en,gettext("Disable 3D acceleration")) \ -DRI_CONF_OPT_END - #define DRI_CONF_ALWAYS_FLUSH_BATCH(def) \ DRI_CONF_OPT_BEGIN_B(always_flush_batch, def) \ DRI_CONF_DESC(en,gettext("Enable flushing batchbuffer after each draw call")) \ |