vkd3d: Use VkDeviceSize for buffer view offset and range (Coverity).

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:
Józef Kucia 2018-11-15 16:32:41 +01:00 committed by Alexandre Julliard
parent 7decb65f54
commit 06c3d1779e

View File

@ -1482,8 +1482,8 @@ static bool vkd3d_create_buffer_view(struct d3d12_device *device,
{ {
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_format *format; const struct vkd3d_format *format;
VkDeviceSize element_size;
struct vkd3d_view *object; struct vkd3d_view *object;
unsigned int element_size;
VkBufferView vk_view; VkBufferView vk_view;
if (view_format == DXGI_FORMAT_R32_TYPELESS && (flags & VKD3D_VIEW_RAW_BUFFER)) if (view_format == DXGI_FORMAT_R32_TYPELESS && (flags & VKD3D_VIEW_RAW_BUFFER))