mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Validate plane count for tiled textures.
This commit is contained in:
parent
0b67481496
commit
5ccadd07f1
Notes:
Alexandre Julliard
2023-06-27 23:33:57 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/216
@ -1686,6 +1686,12 @@ HRESULT d3d12_resource_validate_desc(const D3D12_RESOURCE_DESC *desc, struct d3d
|
|||||||
WARN("The device does not support tiled 3D images.\n");
|
WARN("The device does not support tiled 3D images.\n");
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
}
|
}
|
||||||
|
if (format->plane_count > 1)
|
||||||
|
{
|
||||||
|
WARN("Invalid format %#x. D3D12 does not support multiplanar formats for tiled resources.\n",
|
||||||
|
format->dxgi_format);
|
||||||
|
return E_INVALIDARG;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!d3d12_resource_validate_texture_format(desc, format)
|
if (!d3d12_resource_validate_texture_format(desc, format)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user