mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-07 22:00:00 +00: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:
parent
3cc10b5ff6
commit
9ed71a837b
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
size_t offset, size_t mem_size,
|
||||
VkDeviceSize offset, VkDeviceSize mem_size,
|
||||
int flush)
|
||||
{
|
||||
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.
|
||||
*/
|
||||
int ff_vk_flush_buffer(FFVulkanContext *s, FFVkBuffer *buf,
|
||||
size_t offset, size_t mem_size,
|
||||
VkDeviceSize offset, VkDeviceSize mem_size,
|
||||
int flush);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue