driconf: add option to reuse GL names

Fix apps expecting name recycling.
https://gitlab.freedesktop.org/mesa/mesa/-/issues/3144 is an example
of such issue, SPECviewperf13 has this problem too.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6600>
This commit is contained in:
Pierre-Eric Pelloux-Prayer
2020-08-17 16:20:17 +02:00
parent a56849ddda
commit 265a3b9624
8 changed files with 28 additions and 0 deletions

View File

@@ -1221,6 +1221,8 @@ void st_init_extensions(struct pipe_screen *screen,
consts->GLSLZeroInit = screen->get_param(screen, PIPE_CAP_GLSL_ZERO_INIT);
}
consts->ForceGLNamesReuse = options->force_gl_names_reuse;
consts->ForceIntegerTexNearest = options->force_integer_tex_nearest;
consts->VendorOverride = options->force_gl_vendor;