vkr: clang-format vkr_device_create_queues

Part-of: <https://gitlab.freedesktop.org/virgl/virglrenderer/-/merge_requests/723>
macos/master
Chia-I Wu 3 years ago
parent 5366e2183b
commit bab761c99e
  1. 8
      src/venus/vkr_device.c

@ -36,10 +36,12 @@ vkr_device_create_queues(struct vkr_context *ctx,
* with flags set to zero. It was fixed in spec version 1.1.130. * with flags set to zero. It was fixed in spec version 1.1.130.
* Work around drivers that are implementing this buggy behavior * Work around drivers that are implementing this buggy behavior
*/ */
if (info.flags) if (info.flags) {
vkGetDeviceQueue2(dev->base.handle.device, &info, &handle); vkGetDeviceQueue2(dev->base.handle.device, &info, &handle);
else } else {
vkGetDeviceQueue(dev->base.handle.device, info.queueFamilyIndex, info.queueIndex, &handle); vkGetDeviceQueue(dev->base.handle.device, info.queueFamilyIndex,
info.queueIndex, &handle);
}
struct vkr_queue *queue = vkr_queue_create( struct vkr_queue *queue = vkr_queue_create(
ctx, dev, info.flags, info.queueFamilyIndex, info.queueIndex, handle); ctx, dev, info.flags, info.queueFamilyIndex, info.queueIndex, handle);

Loading…
Cancel
Save