mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
vkd3d: Allow block compressed textures to have unaligned width and height.
This commit is contained in:
committed by
Henri Verbeet
parent
9244f2b536
commit
589ed1e358
Notes:
Henri Verbeet
2024-06-11 17:09:31 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/900
@@ -1809,14 +1809,6 @@ static bool d3d12_resource_validate_texture_format(const D3D12_RESOURCE_DESC1 *d
|
||||
return false;
|
||||
}
|
||||
|
||||
if (align(desc->Width, format->block_width) != desc->Width
|
||||
|| align(desc->Height, format->block_height) != desc->Height)
|
||||
{
|
||||
WARN("Invalid size %"PRIu64"x%u for block compressed format %#x.\n",
|
||||
desc->Width, desc->Height, desc->Format);
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user