turnip: Use VK_NULL_HANDLE instead of NULL.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 2 Jan 2020 11:29:29 +0000 (12:29 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 2 Jan 2020 11:47:02 +0000 (11:47 +0000)
Only occurrence of implicitly converting pointer->int.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/2570>

src/freedreno/vulkan/tu_pipeline.c

index 799b0b2a3de7f87e5c0d4be9c4ad2bee5b4135b0..e5066672177c5e7f4d4ba27aaf6c54c1a701b71c 100644 (file)
@@ -1980,7 +1980,7 @@ tu_graphics_pipeline_create(VkDevice device,
    if (result == VK_SUCCESS)
       *pPipeline = tu_pipeline_to_handle(pipeline);
    else
-      *pPipeline = NULL;
+      *pPipeline = VK_NULL_HANDLE;
 
    return result;
 }