mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 18:08:40 +02: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>
(cherry picked from commit 0bc0ead674)
This commit is contained in:
parent
a98c46f992
commit
fa2492c1f0
2 changed files with 13 additions and 1 deletions
|
|
@ -3794,7 +3794,7 @@
|
|||
"description": "radv: set DRLR mapping info from inheritance info when present",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null,
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -6928,6 +6928,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