Mesa (master): st/dri: reduce dri_fill_st_options() params
Timothy Arceri
tarceri at kemper.freedesktop.org
Mon Mar 6 21:17:25 UTC 2017
Module: Mesa
Branch: master
Commit: 63d7a12fad8216dce4a0212c705678d2d07653b3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=63d7a12fad8216dce4a0212c705678d2d07653b3
Author: Marek Olšák <marek.olsak at amd.com>
Date: Mon Mar 6 15:03:17 2017 +1100
st/dri: reduce dri_fill_st_options() params
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>
---
src/gallium/state_trackers/dri/dri_screen.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c
index c2da7e3..da0e414 100644
--- a/src/gallium/state_trackers/dri/dri_screen.c
+++ b/src/gallium/state_trackers/dri/dri_screen.c
@@ -83,9 +83,11 @@ const __DRIconfigOptionsExtension gallium_config_options = {
#define false 0
static void
-dri_fill_st_options(struct st_config_options *options,
- const struct driOptionCache * optionCache)
+dri_fill_st_options(struct dri_screen *screen)
{
+ struct st_config_options *options = &screen->options;
+ const struct driOptionCache *optionCache = &screen->optionCache;
+
options->disable_blend_func_extended =
driQueryOptionb(optionCache, "disable_blend_func_extended");
options->disable_glsl_line_continuations =
@@ -455,7 +457,7 @@ dri_init_screen_helper(struct dri_screen *screen,
screen->sPriv->myNum,
driver_name);
- dri_fill_st_options(&screen->options, &screen->optionCache);
+ dri_fill_st_options(screen);
/* Handle force_s3tc_enable. */
if (!util_format_s3tc_enabled && screen->options.force_s3tc_enable) {
More information about the mesa-commit
mailing list