mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Validate texture resource alignments.
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:
committed by
Alexandre Julliard
parent
e783784cac
commit
af60bc03ba
@@ -2920,7 +2920,7 @@ static D3D12_RESOURCE_ALLOCATION_INFO * STDMETHODCALLTYPE d3d12_device_GetResour
|
||||
|
||||
desc = &resource_descs[0];
|
||||
|
||||
if (FAILED(d3d12_resource_validate_desc(desc)))
|
||||
if (FAILED(d3d12_resource_validate_desc(desc, device)))
|
||||
{
|
||||
WARN("Invalid resource desc.\n");
|
||||
goto invalid;
|
||||
@@ -3226,7 +3226,7 @@ static void STDMETHODCALLTYPE d3d12_device_GetCopyableFootprints(ID3D12Device *i
|
||||
return;
|
||||
}
|
||||
|
||||
if (FAILED(d3d12_resource_validate_desc(desc)))
|
||||
if (FAILED(d3d12_resource_validate_desc(desc, device)))
|
||||
{
|
||||
WARN("Invalid resource desc.\n");
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user