dzn: Store command list type in the command buffer object

We'll want to use this for choosing queue-type-specific
layouts in the new pipeline barrier implementation.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20324>
This commit is contained in:
Jesse Natalie 2022-12-14 12:18:24 -08:00 committed by Marge Bot
parent d7f5563907
commit 184339ba6f
2 changed files with 3 additions and 0 deletions

View file

@ -480,6 +480,7 @@ dzn_cmd_buffer_create(const VkCommandBufferAllocateInfo *info,
(void)ID3D12GraphicsCommandList_QueryInterface(cmdbuf->cmdlist, &IID_ID3D12GraphicsCommandList8, (void **)&cmdbuf->cmdlist8);
cmdbuf->type = type;
out:
if (result != VK_SUCCESS)
dzn_cmd_buffer_destroy(&cmdbuf->vk);

View file

@ -593,6 +593,8 @@ struct dzn_cmd_buffer {
ID3D12CommandAllocator *cmdalloc;
ID3D12GraphicsCommandList1 *cmdlist;
ID3D12GraphicsCommandList8 *cmdlist8;
D3D12_COMMAND_LIST_TYPE type;
};
struct dzn_descriptor_pool {