mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 02:38:04 +02: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> (cherry picked from commit7fcda2b4e3)
This commit is contained in:
parent
7278e4442c
commit
c5c6f96ab0
2 changed files with 2 additions and 2 deletions
|
|
@ -6484,7 +6484,7 @@
|
|||
"description": "device_select_layer: fix inverted strcmp in device_select_find_dri_prime_tag_default (v1)",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "9bc5b2d169d3a3c9d52fc30987eaba52e3b7dc00",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -289,7 +289,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