diff options
author | Luna Nova <git@lunnova.dev> | 2022-10-16 16:10:47 -0700 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2023-05-05 19:05:55 +0100 |
commit | 8b8fd819066460e9fe5e53048e7054f13264c8ce (patch) | |
tree | d8697037f3073a9cb8f35696dbdb5d1f62b64eeb /src/vulkan/device-select-layer/device_select_layer.c | |
parent | f4fc26abdfb71f9ebc74ac2b3489d52d87f65313 (diff) | |
download | mesa-8b8fd819066460e9fe5e53048e7054f13264c8ce.tar.gz mesa-8b8fd819066460e9fe5e53048e7054f13264c8ce.tar.bz2 mesa-8b8fd819066460e9fe5e53048e7054f13264c8ce.zip |
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: 9bc5b2d169d ("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 commit 7fcda2b4e309cfa53a8ae3b2f03ffc363e745ef7)
Diffstat (limited to 'src/vulkan/device-select-layer/device_select_layer.c')
-rw-r--r-- | src/vulkan/device-select-layer/device_select_layer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/device-select-layer/device_select_layer.c b/src/vulkan/device-select-layer/device_select_layer.c index 19867263907..29ce29eda78 100644 --- a/src/vulkan/device-select-layer/device_select_layer.c +++ b/src/vulkan/device-select-layer/device_select_layer.c @@ -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); |