From: Erik Faye-Lund Date: Thu, 25 Jul 2019 18:52:10 +0000 (+0200) Subject: zink: fixup return-value X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=df11f3f2ab270c3801762b28cf6854a82639a934;p=mesa.git zink: fixup return-value Acked-by: Jordan Justen --- 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;