radv: remove radv_generate_pipeline_key()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27073>
This commit is contained in:

committed by
Marge Bot

parent
72d2eb39fb
commit
c5a5ab46c9
@@ -212,21 +212,6 @@ radv_pipeline_get_shader_key(const struct radv_device *device, const VkPipelineS
|
||||
return key;
|
||||
}
|
||||
|
||||
struct radv_pipeline_key
|
||||
radv_generate_pipeline_key(const struct radv_device *device, const VkPipelineShaderStageCreateInfo *stages,
|
||||
const unsigned num_stages, VkPipelineCreateFlags2KHR flags, const void *pNext)
|
||||
{
|
||||
struct radv_pipeline_key key = {0};
|
||||
|
||||
for (uint32_t i = 0; i < num_stages; i++) {
|
||||
gl_shader_stage s = vk_to_mesa_shader_stage(stages[i].stage);
|
||||
|
||||
key.stage_info[s] = radv_pipeline_get_shader_key(device, &stages[i], flags, pNext);
|
||||
}
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
void
|
||||
radv_pipeline_stage_init(const VkPipelineShaderStageCreateInfo *sinfo,
|
||||
const struct radv_pipeline_layout *pipeline_layout,
|
||||
|
@@ -1968,11 +1968,17 @@ radv_generate_graphics_pipeline_key(const struct radv_device *device, const stru
|
||||
const struct vk_graphics_pipeline_state *state,
|
||||
VkGraphicsPipelineLibraryFlagBitsEXT lib_flags)
|
||||
{
|
||||
struct radv_pipeline_key key = radv_generate_pipeline_key(device, pCreateInfo->pStages, pCreateInfo->stageCount,
|
||||
pipeline->base.create_flags, pCreateInfo->pNext);
|
||||
struct radv_pipeline_key key = {0};
|
||||
|
||||
key.gfx_state = radv_generate_graphics_state_key(device, pipeline, state, lib_flags);
|
||||
|
||||
for (uint32_t i = 0; i < pCreateInfo->stageCount; i++) {
|
||||
const VkPipelineShaderStageCreateInfo *stage = &pCreateInfo->pStages[i];
|
||||
gl_shader_stage s = vk_to_mesa_shader_stage(stage->stage);
|
||||
|
||||
key.stage_info[s] = radv_pipeline_get_shader_key(device, stage, pipeline->base.create_flags, pCreateInfo->pNext);
|
||||
}
|
||||
|
||||
return key;
|
||||
}
|
||||
|
||||
|
@@ -2318,11 +2318,6 @@ struct radv_graphics_pipeline_create_info {
|
||||
uint32_t custom_blend_mode;
|
||||
};
|
||||
|
||||
struct radv_pipeline_key radv_generate_pipeline_key(const struct radv_device *device,
|
||||
const VkPipelineShaderStageCreateInfo *stages,
|
||||
const unsigned num_stages, VkPipelineCreateFlags2KHR flags,
|
||||
const void *pNext);
|
||||
|
||||
struct radv_shader_stage_key radv_pipeline_get_shader_key(const struct radv_device *device,
|
||||
const VkPipelineShaderStageCreateInfo *stage,
|
||||
VkPipelineCreateFlags2KHR flags, const void *pNext);
|
||||
|
Reference in New Issue
Block a user