mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Use the resource's stored format in d3d12_resource_WriteToSubresource().
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
04b1c977ce
commit
4c3ecdf5fd
@ -1353,11 +1353,7 @@ static HRESULT STDMETHODCALLTYPE d3d12_resource_WriteToSubresource(ID3D12Resourc
|
||||
device = resource->device;
|
||||
vk_procs = &device->vk_procs;
|
||||
|
||||
if (!(format = vkd3d_format_from_d3d12_resource_desc(device, &resource->desc, 0)))
|
||||
{
|
||||
ERR("Invalid DXGI format %#x.\n", resource->desc.Format);
|
||||
return E_INVALIDARG;
|
||||
}
|
||||
format = resource->format;
|
||||
if (format->vk_aspect_mask != VK_IMAGE_ASPECT_COLOR_BIT)
|
||||
{
|
||||
FIXME("Not supported for format %#x.\n", format->dxgi_format);
|
||||
|
Loading…
Reference in New Issue
Block a user