radv: set DRLR mapping info from inheritance info when present
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

These two structs are allowed to be in pNext and they should match
the primary command buffer info.

Found while implementing a new extension.

Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37278>
This commit is contained in:
Samuel Pitoiset 2025-09-10 17:30:42 +02:00 committed by Marge Bot
parent 5907dbfc09
commit 0bc0ead674

View file

@ -7565,6 +7565,18 @@ radv_BeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBegi
*/
render->has_hiz_his = true;
}
const VkRenderingAttachmentLocationInfo *ral_info =
vk_find_struct_const(pBeginInfo->pInheritanceInfo->pNext, RENDERING_ATTACHMENT_LOCATION_INFO);
if (ral_info) {
radv_CmdSetRenderingAttachmentLocations(commandBuffer, ral_info);
}
const VkRenderingInputAttachmentIndexInfo *ria_info =
vk_find_struct_const(pBeginInfo->pInheritanceInfo->pNext, RENDERING_INPUT_ATTACHMENT_INDEX_INFO);
if (ria_info) {
radv_CmdSetRenderingInputAttachmentIndices(commandBuffer, ria_info);
}
}
cmd_buffer->state.inherited_pipeline_statistics = pBeginInfo->pInheritanceInfo->pipelineStatistics;