zink: fixup return-value

Acked-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
Erik Faye-Lund 2019-07-25 20:52:10 +02:00
parent d5cbc05cde
commit df11f3f2ab
1 changed files with 1 additions and 1 deletions

View 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;