• Home
  • Raw
  • Download

Lines Matching refs:qf

899 static inline int pick_queue_family(VkQueueFamilyProperties *qf, uint32_t num_qf,  in pick_queue_family()  argument
906 const VkQueueFlagBits qflags = qf[i].queueFlags; in pick_queue_family()
908 uint32_t score = av_popcount(qflags) + qf[i].timestampValidBits; in pick_queue_family()
917 qf[index].timestampValidBits++; in pick_queue_family()
926 VkQueueFamilyProperties *qf = NULL; in setup_queue_families() local
940 qf = av_malloc_array(num, sizeof(VkQueueFamilyProperties)); in setup_queue_families()
941 if (!qf) in setup_queue_families()
945 vk->GetPhysicalDeviceQueueFamilyProperties(hwctx->phys_dev, &num, qf); in setup_queue_families()
950 ((qf[i].queueFlags) & VK_QUEUE_GRAPHICS_BIT) ? " graphics" : "", in setup_queue_families()
951 ((qf[i].queueFlags) & VK_QUEUE_COMPUTE_BIT) ? " compute" : "", in setup_queue_families()
952 ((qf[i].queueFlags) & VK_QUEUE_TRANSFER_BIT) ? " transfer" : "", in setup_queue_families()
953 ((qf[i].queueFlags) & VK_QUEUE_VIDEO_ENCODE_BIT_KHR) ? " encode" : "", in setup_queue_families()
954 ((qf[i].queueFlags) & VK_QUEUE_VIDEO_DECODE_BIT_KHR) ? " decode" : "", in setup_queue_families()
955 ((qf[i].queueFlags) & VK_QUEUE_SPARSE_BINDING_BIT) ? " sparse" : "", in setup_queue_families()
956 ((qf[i].queueFlags) & VK_QUEUE_PROTECTED_BIT) ? " protected" : "", in setup_queue_families()
957 qf[i].queueCount); in setup_queue_families()
961 qf[i].timestampValidBits = 0; in setup_queue_families()
965 graph_index = pick_queue_family(qf, num, VK_QUEUE_GRAPHICS_BIT); in setup_queue_families()
966 comp_index = pick_queue_family(qf, num, VK_QUEUE_COMPUTE_BIT); in setup_queue_families()
967 tx_index = pick_queue_family(qf, num, VK_QUEUE_TRANSFER_BIT); in setup_queue_families()
968 enc_index = pick_queue_family(qf, num, VK_QUEUE_VIDEO_ENCODE_BIT_KHR); in setup_queue_families()
969 dec_index = pick_queue_family(qf, num, VK_QUEUE_VIDEO_DECODE_BIT_KHR); in setup_queue_families()
973 tx_index = pick_queue_family(qf, num, VK_QUEUE_COMPUTE_BIT); in setup_queue_families()
975 tx_index = pick_queue_family(qf, num, VK_QUEUE_GRAPHICS_BIT); in setup_queue_families()
987 int qc = qf[fidx].queueCount; \ in setup_queue_families()
1019 av_free(qf); \ in setup_queue_families()
1027 av_free(qf); \ in setup_queue_families()
1051 av_free(qf); in setup_queue_families()