mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-12 18:18:36 +02:00
zink: don't clobber descriptor mode on multiple screen creation
the env var should only ever be read if the mode is unset
cc: mesa-stable
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24075>
(cherry picked from commit 626e3a6e34)
This commit is contained in:
parent
2cb7181890
commit
4873c38a4c
2 changed files with 3 additions and 2 deletions
|
|
@ -400,7 +400,7 @@
|
|||
"description": "zink: don't clobber descriptor mode on multiple screen creation",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2691,7 +2691,8 @@ zink_internal_create_screen(const struct pipe_screen_config *config)
|
|||
return NULL;
|
||||
|
||||
zink_debug = debug_get_option_zink_debug();
|
||||
zink_descriptor_mode = debug_get_option_zink_descriptor_mode();
|
||||
if (zink_descriptor_mode == ZINK_DESCRIPTOR_MODE_AUTO)
|
||||
zink_descriptor_mode = debug_get_option_zink_descriptor_mode();
|
||||
|
||||
screen->threaded = util_get_cpu_caps()->nr_cpus > 1 && debug_get_bool_option("GALLIUM_THREAD", util_get_cpu_caps()->nr_cpus > 1);
|
||||
if (zink_debug & ZINK_DEBUG_FLUSHSYNC)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue