mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
zink: move drirc handling up
this can modify instance creation Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14541>
This commit is contained in:
parent
820077acdb
commit
513fcc37d9
1 changed files with 8 additions and 8 deletions
|
|
@ -2109,6 +2109,14 @@ zink_internal_create_screen(const struct pipe_screen_config *config)
|
|||
}
|
||||
|
||||
screen->instance_info.loader_version = zink_get_loader_version();
|
||||
#if WITH_XMLCONFIG
|
||||
if (config) {
|
||||
driParseConfigFiles(config->options, config->options_info, 0, "zink",
|
||||
NULL, NULL, NULL, 0, NULL, 0);
|
||||
screen->driconf.dual_color_blend_by_location = driQueryOptionb(config->options, "dual_color_blend_by_location");
|
||||
//screen->driconf.inline_uniforms = driQueryOptionb(config->options, "radeonsi_inline_uniforms");
|
||||
}
|
||||
#endif
|
||||
screen->instance = zink_create_instance(&screen->instance_info);
|
||||
|
||||
if (!screen->instance)
|
||||
|
|
@ -2228,14 +2236,6 @@ zink_internal_create_screen(const struct pipe_screen_config *config)
|
|||
|
||||
slab_create_parent(&screen->transfer_pool, sizeof(struct zink_transfer), 16);
|
||||
|
||||
#if WITH_XMLCONFIG
|
||||
if (config) {
|
||||
driParseConfigFiles(config->options, config->options_info, 0, "zink",
|
||||
NULL, NULL, NULL, 0, NULL, 0);
|
||||
screen->driconf.dual_color_blend_by_location = driQueryOptionb(config->options, "dual_color_blend_by_location");
|
||||
//screen->driconf.inline_uniforms = driQueryOptionb(config->options, "radeonsi_inline_uniforms");
|
||||
}
|
||||
#endif
|
||||
screen->driconf.inline_uniforms = debug_get_bool_option("ZINK_INLINE_UNIFORMS", screen->is_cpu);
|
||||
|
||||
screen->total_video_mem = get_video_mem(screen);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue