Lines Matching defs:select
770 static int find_device(AVHWDeviceContext *ctx, VulkanDeviceSelection *select)
825 if (select->has_uuid) {
827 if (!strncmp(idp[i].deviceUUID, select->uuid, VK_UUID_SIZE)) {
835 } else if (select->name) {
836 av_log(ctx, AV_LOG_VERBOSE, "Requested device: %s\n", select->name);
838 if (strstr(prop[i].properties.deviceName, select->name)) {
844 select->name);
847 } else if (select->pci_device) {
848 av_log(ctx, AV_LOG_VERBOSE, "Requested device: 0x%x\n", select->pci_device);
850 if (select->pci_device == prop[i].properties.deviceID) {
856 select->pci_device);
859 } else if (select->vendor_id) {
860 av_log(ctx, AV_LOG_VERBOSE, "Requested vendor: 0x%x\n", select->vendor_id);
862 if (select->vendor_id == prop[i].properties.vendorID) {
868 select->vendor_id);
872 if (select->index < num) {
873 choice = select->index;
877 select->index);