From 568833cb86ca19ad877dcb360cb684b619b2c521 Mon Sep 17 00:00:00 2001 From: Dario Date: Tue, 2 Jun 2026 12:05:05 -0300 Subject: [PATCH] Don't use CreateCommandList1 on D3D12. --- drivers/d3d12/rendering_device_driver_d3d12.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/d3d12/rendering_device_driver_d3d12.cpp b/drivers/d3d12/rendering_device_driver_d3d12.cpp index 976f3af6e2..5afb1b7aa0 100644 --- a/drivers/d3d12/rendering_device_driver_d3d12.cpp +++ b/drivers/d3d12/rendering_device_driver_d3d12.cpp @@ -2577,18 +2577,9 @@ RDD::CommandBufferID RenderingDeviceDriverD3D12::command_buffer_create(CommandPo ComPtr cmd_list; { - ComPtr device_4; - device->QueryInterface(device_4.GetAddressOf()); - HRESULT res = E_FAIL; - if (device_4) { - res = device_4->CreateCommandList1(0, list_type, D3D12_COMMAND_LIST_FLAG_NONE, IID_PPV_ARGS(cmd_list.GetAddressOf())); - } else { - res = device->CreateCommandList(0, list_type, cmd_allocator.Get(), nullptr, IID_PPV_ARGS(cmd_list.GetAddressOf())); - } + HRESULT res = device->CreateCommandList(0, list_type, cmd_allocator.Get(), nullptr, IID_PPV_ARGS(cmd_list.GetAddressOf())); ERR_FAIL_COND_V_MSG(!SUCCEEDED(res), CommandBufferID(), "CreateCommandList failed with error " + vformat("0x%08ux", (uint64_t)res) + "."); - if (!device_4) { - cmd_list->Close(); - } + cmd_list->Close(); } CPUDescriptorHeapPool::Allocation uav_alloc;