mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
avutil/vulkan: fix device memory size truncation
size_t cannot fit VK_WHOLE_SIZE on 32-bit builds.
Fixes: warning: conversion from 'long long unsigned int' to 'size_t' {aka 'unsigned int'} changes value from '18446744073709551615' to '4294967295'
Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -1168,7 +1168,7 @@ int ff_vk_map_buffers(FFVulkanContext *s, FFVkBuffer **buf, uint8_t *mem[],
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf,
|
int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf,
|
||||||
size_t offset, size_t mem_size,
|
VkDeviceSize offset, VkDeviceSize mem_size,
|
||||||
int flush)
|
int flush)
|
||||||
{
|
{
|
||||||
VkResult ret;
|
VkResult ret;
|
||||||
|
|||||||
@@ -527,7 +527,7 @@ int ff_vk_create_buf(FFVulkanContext *s, FFVkBuffer *buf, size_t size,
|
|||||||
* Flush or invalidate a single buffer, with a given size and offset.
|
* Flush or invalidate a single buffer, with a given size and offset.
|
||||||
*/
|
*/
|
||||||
int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf,
|
int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf,
|
||||||
size_t offset, size_t mem_size,
|
VkDeviceSize offset, VkDeviceSize mem_size,
|
||||||
int flush);
|
int flush);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user