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:
committed by
Mike Blumenkrantz
parent
ed212b8cce
commit
7fcda2b4e3
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user