zink: fixup return-value
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Thu, 25 Jul 2019 18:52:10 +0000 (20:52 +0200)
committerErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 28 Oct 2019 08:51:48 +0000 (08:51 +0000)
Acked-by: Jordan Justen <jordan.l.justen@intel.com>
src/gallium/drivers/zink/zink_program.c

index 39a7cde21d4e1e52302e4060aa263ad0aa78e0dd..020b311f493ac62d49189e2c2d5eeff78245cbf8 100644 (file)
@@ -236,7 +236,7 @@ zink_get_gfx_pipeline(struct zink_screen *screen,
 
       struct pipeline_cache_entry *pc_entry = CALLOC_STRUCT(pipeline_cache_entry);
       if (!pc_entry)
-         return NULL;
+         return VK_NULL_HANDLE;
 
       memcpy(&pc_entry->state, state, sizeof(*state));
       pc_entry->pipeline = pipeline;