diff options
-rw-r--r-- | .pick_status.json | 2 | ||||
-rw-r--r-- | src/vulkan/device-select-layer/device_select_layer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.pick_status.json b/.pick_status.json index 5af06bce6cc..984741b7edc 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -616,7 +616,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" }, 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); |