radv/rt: rename library_pipeline->groups to library_pipeline->group_infos

'groups' will later be used for ray_tracing_modules.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21667>
This commit is contained in:
Daniel Schürmann 2023-03-02 17:20:34 +01:00 committed by Marge Bot
parent d79d62c638
commit a62d699664
2 changed files with 6 additions and 6 deletions

View file

@ -181,7 +181,7 @@ radv_create_merged_rt_create_info(const VkRayTracingPipelineCreateInfoKHR *pCrea
stages[total_stages + j] = library_pipeline->stages[j];
for (unsigned j = 0; j < library_pipeline->group_count; ++j) {
VkRayTracingShaderGroupCreateInfoKHR *dst = &groups[total_groups + j];
*dst = library_pipeline->groups[j];
*dst = library_pipeline->group_infos[j];
if (dst->generalShader != VK_SHADER_UNUSED_KHR)
dst->generalShader += total_stages;
if (dst->closestHitShader != VK_SHADER_UNUSED_KHR)
@ -319,10 +319,10 @@ radv_rt_pipeline_library_create(VkDevice _device, VkPipelineCache _cache,
if (local_create_info.groupCount) {
size_t size = sizeof(VkRayTracingShaderGroupCreateInfoKHR) * local_create_info.groupCount;
pipeline->group_count = local_create_info.groupCount;
pipeline->groups = ralloc_size(pipeline->ctx, size);
if (!pipeline->groups)
pipeline->group_infos = ralloc_size(pipeline->ctx, size);
if (!pipeline->group_infos)
goto fail;
memcpy(pipeline->groups, local_create_info.pGroups, size);
memcpy(pipeline->group_infos, local_create_info.pGroups, size);
}
*pPipeline = radv_pipeline_to_handle(&pipeline->base);
@ -331,7 +331,7 @@ radv_rt_pipeline_library_create(VkDevice _device, VkPipelineCache _cache,
free((void *)local_create_info.pStages);
return VK_SUCCESS;
fail:
free(pipeline->groups);
free(pipeline->group_infos);
ralloc_free(pipeline->ctx);
free((void *)local_create_info.pGroups);
free((void *)local_create_info.pStages);

View file

@ -2213,7 +2213,7 @@ struct radv_library_pipeline {
unsigned stage_count;
VkPipelineShaderStageCreateInfo *stages;
unsigned group_count;
VkRayTracingShaderGroupCreateInfoKHR *groups;
VkRayTracingShaderGroupCreateInfoKHR *group_infos;
VkPipelineShaderStageModuleIdentifierCreateInfoEXT *identifiers;
struct {
uint8_t sha1[SHA1_DIGEST_LENGTH];