Skip to content

vkd3d: Use uint64_t for the size in vkd3d_gpu_va_allocator_allocate.

Jacek Caban requested to merge jacek/vkd3d:buffer-size into master

Avoids value truncation in 32-bit builds and fixes clang warning:

../libs/vkd3d/libs/vkd3d/device.c:2157:14: warning: result of comparison of constant 4294967296 with expression of type 'size_t' (aka 'unsigned int') is always true [-Wtautological-constant-out-of-range-compare]
    if (size <= VKD3D_VA_SLAB_SIZE && allocator->free_slab)
        ~~~~ ^  ~~~~~~~~~~~~~~~~~~

Merge request reports

Loading