mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 18:20:10 +01:00
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:
parent
2ae9b2ce43
commit
d7d31708fa
1 changed files with 1 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue