diff options
author | Jason Ekstrand <jason@jlekstrand.net> | 2021-10-04 14:24:57 -0500 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-04-22 19:38:52 +0000 |
commit | 2d3b3b757ad0eaef6abcb6ef81fc73b65b9a83d8 (patch) | |
tree | ffb318bc8eeb30c225ff12744ab74edbefc3c9c5 /src/intel/vulkan/genX_pipeline.c | |
parent | 7f1e82306c9b59fe534b9712d85f9324b0bfb5a4 (diff) |
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>
Diffstat (limited to 'src/intel/vulkan/genX_pipeline.c')
-rw-r--r-- | src/intel/vulkan/genX_pipeline.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/intel/vulkan/genX_pipeline.c b/src/intel/vulkan/genX_pipeline.c index 91aa50b1b45..0d774cfcd5c 100644 --- a/src/intel/vulkan/genX_pipeline.c +++ b/src/intel/vulkan/genX_pipeline.c @@ -2791,10 +2791,6 @@ genX(graphics_pipeline_create)( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO); - /* Use the default pipeline cache if none is specified */ - if (cache == NULL) - cache = device->default_pipeline_cache; - pipeline = vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*pipeline), 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (pipeline == NULL) @@ -3099,10 +3095,6 @@ compute_pipeline_create( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO); - /* Use the default pipeline cache if none is specified */ - if (cache == NULL) - cache = device->default_pipeline_cache; - pipeline = vk_zalloc2(&device->vk.alloc, pAllocator, sizeof(*pipeline), 8, VK_SYSTEM_ALLOCATION_SCOPE_OBJECT); if (pipeline == NULL) @@ -3244,10 +3236,6 @@ ray_tracing_pipeline_create( assert(pCreateInfo->sType == VK_STRUCTURE_TYPE_RAY_TRACING_PIPELINE_CREATE_INFO_KHR); - /* Use the default pipeline cache if none is specified */ - if (cache == NULL) - cache = device->default_pipeline_cache; - VK_MULTIALLOC(ma); VK_MULTIALLOC_DECL(&ma, struct anv_ray_tracing_pipeline, pipeline, 1); VK_MULTIALLOC_DECL(&ma, struct anv_rt_shader_group, groups, pCreateInfo->groupCount); |