radv: Make some pipeline functions non-static.

Want to put the rt stuff in its own file. radv_pipeline.c is pretty
large already.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12592>
This commit is contained in:
Bas Nieuwenhuizen
2021-08-24 02:00:00 +02:00
committed by Marge Bot
parent 8312b2232b
commit f087b457e5
2 changed files with 10 additions and 2 deletions

View File

@@ -173,7 +173,7 @@ radv_pipeline_has_gs_copy_shader(const struct radv_pipeline *pipeline)
return !!pipeline->gs_copy_shader; return !!pipeline->gs_copy_shader;
} }
static void void
radv_pipeline_destroy(struct radv_device *device, struct radv_pipeline *pipeline, radv_pipeline_destroy(struct radv_device *device, struct radv_pipeline *pipeline,
const VkAllocationCallbacks *allocator) const VkAllocationCallbacks *allocator)
{ {
@@ -5740,7 +5740,7 @@ radv_generate_compute_pipeline_key(struct radv_pipeline *pipeline,
return key; return key;
} }
static VkResult VkResult
radv_compute_pipeline_create(VkDevice _device, VkPipelineCache _cache, radv_compute_pipeline_create(VkDevice _device, VkPipelineCache _cache,
const VkComputePipelineCreateInfo *pCreateInfo, const VkComputePipelineCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator, VkPipeline *pPipeline) const VkAllocationCallbacks *pAllocator, VkPipeline *pPipeline)

View File

@@ -1861,6 +1861,14 @@ VkResult radv_graphics_pipeline_create(VkDevice device, VkPipelineCache cache,
const struct radv_graphics_pipeline_create_info *extra, const struct radv_graphics_pipeline_create_info *extra,
const VkAllocationCallbacks *alloc, VkPipeline *pPipeline); const VkAllocationCallbacks *alloc, VkPipeline *pPipeline);
VkResult radv_compute_pipeline_create(VkDevice _device, VkPipelineCache _cache,
const VkComputePipelineCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator,
VkPipeline *pPipeline);
void radv_pipeline_destroy(struct radv_device *device, struct radv_pipeline *pipeline,
const VkAllocationCallbacks *allocator);
struct radv_binning_settings { struct radv_binning_settings {
unsigned context_states_per_bin; /* allowed range: [1, 6] */ unsigned context_states_per_bin; /* allowed range: [1, 6] */
unsigned persistent_states_per_bin; /* allowed range: [1, 32] */ unsigned persistent_states_per_bin; /* allowed range: [1, 32] */