mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 20:50:09 +01:00
device_select_layer: fix inverted strcmp in device_select_find_dri_prime_tag_default (v1)
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7498
Fixes: 9bc5b2d169 ("vulkan: add initial device selection layer. (v6.1)")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19101>
This commit is contained in:
parent
ed212b8cce
commit
7fcda2b4e3
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ static int device_select_find_dri_prime_tag_default(struct device_pci_info *pci_
|
|||
pci_infos[i].bus_info.bus,
|
||||
pci_infos[i].bus_info.dev,
|
||||
pci_infos[i].bus_info.func) >= 0) {
|
||||
if (strcmp(dri_prime, tag))
|
||||
if (strcmp(dri_prime, tag) == 0)
|
||||
default_idx = i;
|
||||
}
|
||||
free(tag);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue