From df11f3f2ab270c3801762b28cf6854a82639a934 Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Thu, 25 Jul 2019 20:52:10 +0200 Subject: [PATCH] zink: fixup return-value Acked-by: Jordan Justen --- src/gallium/drivers/zink/zink_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_program.c b/src/gallium/drivers/zink/zink_program.c index 39a7cde21d4..020b311f493 100644 --- a/src/gallium/drivers/zink/zink_program.c +++ b/src/gallium/drivers/zink/zink_program.c @@ -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; -- 2.30.2