diff options
author | Marek Olšák <[email protected]> | 2013-07-30 22:29:16 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-07-30 23:31:23 +0200 |
commit | 2acc27cc6de5cae395d19017daf86ddd8de704cf (patch) | |
tree | 44ae11f723f56d0a02b61793214bb1ca99c78ac7 /src/gallium/state_trackers/dri | |
parent | 71e0b5d688e8442c4c19d905db84caad94314d5e (diff) |
st/dri: support the driconf option disable_blend_func_extended
This is needed for Unigine.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_context.c | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_screen.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c index 58a710d0d14..5794e487158 100644 --- a/src/gallium/state_trackers/dri/common/dri_context.c +++ b/src/gallium/state_trackers/dri/common/dri_context.c @@ -56,6 +56,8 @@ static void dri_fill_st_options(struct st_config_options *options, driQueryOptionb(optionCache, "force_glsl_extensions_warn"); options->disable_glsl_line_continuations = driQueryOptionb(optionCache, "disable_glsl_line_continuations"); + options->disable_blend_func_extended = + driQueryOptionb(optionCache, "disable_blend_func_extended"); } GLboolean diff --git a/src/gallium/state_trackers/dri/common/dri_screen.c b/src/gallium/state_trackers/dri/common/dri_screen.c index 6a037c4d881..20a3caf601a 100644 --- a/src/gallium/state_trackers/dri/common/dri_screen.c +++ b/src/gallium/state_trackers/dri/common/dri_screen.c @@ -67,6 +67,7 @@ PUBLIC const char __driConfigOptions[] = DRI_CONF_SECTION_DEBUG DRI_CONF_FORCE_GLSL_EXTENSIONS_WARN("false") DRI_CONF_DISABLE_GLSL_LINE_CONTINUATIONS("false") + DRI_CONF_DISABLE_BLEND_FUNC_EXTENDED("false") DRI_CONF_SECTION_END DRI_CONF_SECTION_MISCELLANEOUS @@ -76,7 +77,7 @@ PUBLIC const char __driConfigOptions[] = #define false 0 -static const uint __driNConfigOptions = 12; +static const uint __driNConfigOptions = 13; static const __DRIconfig ** dri_fill_in_modes(struct dri_screen *screen) |