anv: Unify GetDeviceQueue and GetDeviceQueue2
authorRicardo Garcia <rgarcia@igalia.com>
Thu, 7 Nov 2019 14:38:45 +0000 (15:38 +0100)
committerJason Ekstrand <jason@jlekstrand.net>
Mon, 11 Nov 2019 16:14:56 +0000 (16:14 +0000)
commit20b403aad0db5dda579de9ff31c38906b277d364
tree6ec44af26b1c3ef343bef0b7c4f77395166df286
parent5b31182665f0dfc89e9ae79cc73342d8b4d7536d
anv: Unify GetDeviceQueue and GetDeviceQueue2

Avoid duplicating some checks and code by making anv_GetDeviceQueue a
subcase of anv_GetDeviceQueue2, like radv does.

Signed-off-by: Ricardo Garcia <rgarcia@igalia.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c