mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Describe DXGI_UNKNOWN as having one plane.
We're explicitly replacing zero with one in the only place where the plane count being zero or one makes a difference. It also make sense: UNKNOWN is used for buffers, which for all intents and purposes have one plane.
This commit is contained in:
committed by
Henri Verbeet
parent
a082daeb56
commit
17adde7f73
Notes:
Henri Verbeet
2025-01-20 16:18:31 +01:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/899
@@ -3557,12 +3557,6 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device9
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
if (data->Format == DXGI_FORMAT_UNKNOWN)
|
||||
{
|
||||
data->PlaneCount = 1;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if (!(format = vkd3d_get_format(device, data->Format, false)))
|
||||
format = vkd3d_get_format(device, data->Format, true);
|
||||
if (!format)
|
||||
|
||||
Reference in New Issue
Block a user