mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
radv: set DRLR mapping info from inheritance info when present
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:
parent
5907dbfc09
commit
0bc0ead674
1 changed files with 12 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue