Mesa (master): st/dri: pass config options to the state tracker
Vadim Girlin
vadimg at kemper.freedesktop.org
Thu Aug 23 16:18:56 UTC 2012
Module: Mesa
Branch: master
Commit: 68d6441930fa19e2414a4c273ddce15e0c71de99
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=68d6441930fa19e2414a4c273ddce15e0c71de99
Author: Vadim Girlin <vadimgirlin at gmail.com>
Date: Thu Apr 12 04:30:57 2012 +0400
st/dri: pass config options to the state tracker
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
---
.../state_trackers/dri/common/dri_context.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/src/gallium/state_trackers/dri/common/dri_context.c b/src/gallium/state_trackers/dri/common/dri_context.c
index 9e59023..0403826 100644
--- a/src/gallium/state_trackers/dri/common/dri_context.c
+++ b/src/gallium/state_trackers/dri/common/dri_context.c
@@ -49,6 +49,13 @@ dri_pp_query(struct dri_context *ctx)
}
}
+static void dri_fill_st_options(struct st_config_options *options,
+ const struct driOptionCache * optionCache)
+{
+ options->force_glsl_extensions_warn =
+ driQueryOptionb(optionCache, "force_glsl_extensions_warn");
+}
+
GLboolean
dri_create_context(gl_api api, const struct gl_config * visual,
__DRIcontext * cPriv,
@@ -107,6 +114,7 @@ dri_create_context(gl_api api, const struct gl_config * visual,
driParseConfigFiles(&ctx->optionCache,
&screen->optionCache, sPriv->myNum, driver_descriptor.name);
+ dri_fill_st_options(&attribs.options, &ctx->optionCache);
dri_fill_st_visual(&attribs.visual, screen, visual);
ctx->st = stapi->create_context(stapi, &screen->base, &attribs, &ctx_err,
st_share);
More information about the mesa-commit
mailing list