mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Return hardcoded GPU virtual address support.
The hardcoded value makes a real app happy and it is close to values returned by various Windows drivers (AMD, Intel, Nvidia). In the long term, we might try to derive the values from maxResourceSize and/or sparseAddressSpaceSize. Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
bcd91910e4
commit
766361f9c3
@@ -1840,6 +1840,22 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device *
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
case D3D12_FEATURE_GPU_VIRTUAL_ADDRESS_SUPPORT:
|
||||
{
|
||||
D3D12_FEATURE_DATA_GPU_VIRTUAL_ADDRESS_SUPPORT *data = feature_data;
|
||||
|
||||
if (feature_data_size != sizeof(*data))
|
||||
{
|
||||
WARN("Invalid size %u.\n", feature_data_size);
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
|
||||
FIXME("Returning 40 GPU virtual address bits.\n");
|
||||
data->MaxGPUVirtualAddressBitsPerResource = 40;
|
||||
data->MaxGPUVirtualAddressBitsPerProcess = 40;
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
case D3D12_FEATURE_SHADER_MODEL:
|
||||
{
|
||||
D3D12_FEATURE_DATA_SHADER_MODEL *data = feature_data;
|
||||
|
Reference in New Issue
Block a user