diff options
| author | 2018-02-07 14:06:09 -0800 | |
|---|---|---|
| committer | 2018-02-07 14:06:09 -0800 | |
| commit | f5b9f733d50c0427e8da98b9beea3cf318ee41cc (patch) | |
| tree | f56cb514049ccd29f5bac5dad5471b1e3946469d /vulkan/libvulkan/driver.cpp | |
| parent | eb7bdbcb5d15b19a38dc726968f4e4b59b8080e1 (diff) | |
vkGetDeviceQueue2: fix the NULL check
Contents of VkQueue* needs to be checked against VK_NULL_HANDLE
Test: dEQP-VK.api.device_init.create_device_queue2*
Bug: b/72867433
Change-Id: I39643a75497ef4e59823c6bb90760d34b81f5865
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
| -rw-r--r-- | vulkan/libvulkan/driver.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index 1fceb4ac5e..a9d473dcb1 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp @@ -1170,8 +1170,7 @@ void GetDeviceQueue2(VkDevice device, const auto& data = GetData(device); data.driver.GetDeviceQueue2(device, pQueueInfo, pQueue); - if (pQueue != VK_NULL_HANDLE) - SetData(*pQueue, data); + if (*pQueue != VK_NULL_HANDLE) SetData(*pQueue, data); } VKAPI_ATTR VkResult |