anv: Clean up pipeline cache helpers a bit
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 4 Oct 2021 19:24:57 +0000 (14:24 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 22 Apr 2022 19:38:52 +0000 (19:38 +0000)
commit2d3b3b757ad0eaef6abcb6ef81fc73b65b9a83d8
treeffb318bc8eeb30c225ff12744ab74edbefc3c9c5
parent7f1e82306c9b59fe534b9712d85f9324b0bfb5a4
anv: Clean up pipeline cache helpers a bit

Instead of having two different helpers, delete the pipeline_cache ones.
Also, instead of manually handling the cache == NULL case in every
vkCreateFooPipelines call, handle it inside the helpers.  This means
that BLORP can use them too by passing cache=NULL.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13184>
src/intel/vulkan/anv_blorp.c
src/intel/vulkan/anv_pipeline_cache.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_pipeline.c