diff options
author | Timothy Arceri <[email protected]> | 2019-08-02 15:13:59 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2019-08-07 10:12:49 +1000 |
commit | dca119f12c291d7665d72464c92a8bf4328ef38e (patch) | |
tree | 4c2d81ab1b55694930ad0d427cb7d1c7e76e2b6e /src/gallium/state_trackers | |
parent | c95e2a1c6ba40f017ca451e862a794d45ddb62cf (diff) |
mesa/gallium: add dric option to allow overriding GL vendor string
Will be used in the following patch.
Reviewed-by: Marek Olšák <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=93551
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/dri/dri_screen.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/dri_screen.c b/src/gallium/state_trackers/dri/dri_screen.c index 5a555eacd09..67e956e1d21 100644 --- a/src/gallium/state_trackers/dri/dri_screen.c +++ b/src/gallium/state_trackers/dri/dri_screen.c @@ -89,6 +89,11 @@ dri_fill_st_options(struct dri_screen *screen) options->allow_glsl_layout_qualifier_on_function_parameters = driQueryOptionb(optionCache, "allow_glsl_layout_qualifier_on_function_parameters"); + char *vendor_str = driQueryOptionstr(optionCache, "force_gl_vendor"); + /* not an empty string */ + if (*vendor_str) + options->force_gl_vendor = strdup(vendor_str); + driComputeOptionsSha1(optionCache, options->config_options_sha1); } @@ -481,6 +486,8 @@ dri_destroy_screen(__DRIscreen * sPriv) pipe_loader_release(&screen->dev, 1); + free(screen->options.force_gl_vendor); + /* The caller in dri_util preserves the fd ownership */ free(screen); sPriv->driverPrivate = NULL; |