mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d: Check texel buffer view alignment requirements.
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:
parent
3e99853297
commit
396a8d4fe7
@ -1663,6 +1663,7 @@ static bool vkd3d_create_vk_buffer_view(struct d3d12_device *device,
|
|||||||
VkDeviceSize offset, VkDeviceSize range, VkBufferView *vk_view)
|
VkDeviceSize offset, VkDeviceSize range, VkBufferView *vk_view)
|
||||||
{
|
{
|
||||||
const struct vkd3d_vk_device_procs *vk_procs = &device->vk_procs;
|
const struct vkd3d_vk_device_procs *vk_procs = &device->vk_procs;
|
||||||
|
const struct vkd3d_vulkan_info *vk_info = &device->vk_info;
|
||||||
struct VkBufferViewCreateInfo view_desc;
|
struct VkBufferViewCreateInfo view_desc;
|
||||||
VkResult vr;
|
VkResult vr;
|
||||||
|
|
||||||
@ -1674,6 +1675,12 @@ static bool vkd3d_create_vk_buffer_view(struct d3d12_device *device,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (offset % vk_info->device_limits.minTexelBufferOffsetAlignment)
|
||||||
|
{
|
||||||
|
FIXME("Offset %#"PRIx64" violates the minimum required alignment %#"PRIx64".\n",
|
||||||
|
offset, vk_info->device_limits.minTexelBufferOffsetAlignment);
|
||||||
|
}
|
||||||
|
|
||||||
view_desc.sType = VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO;
|
view_desc.sType = VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO;
|
||||||
view_desc.pNext = NULL;
|
view_desc.pNext = NULL;
|
||||||
view_desc.flags = 0;
|
view_desc.flags = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user