d3d12: fix failure when building with v1.717.0-preview and running on Windows 11 without Agility Pack

remove wrong #else statment preventing falling back to old interface.

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35690>
This commit is contained in:
Pohsiang (John) Hsu 2025-06-17 09:39:06 -07:00 committed by Marge Bot
parent 2ae9b2ce43
commit d7d31708fa

View file

@ -1010,7 +1010,7 @@ d3d12_video_encoder_reconfigure_encoder_objects(struct d3d12_video_encoder *pD3D
}
}
else
#else // D3D12_VIDEO_USE_NEW_ENCODECMDLIST4_INTERFACE
#endif // D3D12_VIDEO_USE_NEW_ENCODECMDLIST4_INTERFACE
{
D3D12_VIDEO_ENCODER_HEAP_DESC heapDesc = { pD3D12Enc->m_NodeMask,
D3D12_VIDEO_ENCODER_HEAP_FLAG_NONE,
@ -1027,7 +1027,6 @@ d3d12_video_encoder_reconfigure_encoder_objects(struct d3d12_video_encoder *pD3D
hr = pD3D12Enc->m_spD3D12VideoDevice->CreateVideoEncoderHeap(&heapDesc,
IID_PPV_ARGS(pD3D12Enc->m_spVideoEncoderHeap.GetAddressOf()));
}
#endif // D3D12_VIDEO_USE_NEW_ENCODECMDLIST4_INTERFACE
if (FAILED(hr)) {
debug_printf("CreateVideoEncoderHeap failed with HR %x\n", hr);