vk: Silence some compiler warnings

This commit is contained in:
kd-11 2021-02-13 17:34:25 +03:00 committed by kd-11
parent 5b044a93c1
commit b8311caa6b
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ namespace vk
#endif
}
void create_dma_block(std::unique_ptr<dma_block>& block, u32 base_address, u32 expected_length)
void create_dma_block(std::unique_ptr<dma_block>& block, u32 base_address, usz expected_length)
{
const auto vendor = g_render_device->gpu().get_driver_vendor();

View File

@ -894,7 +894,7 @@ namespace vk
auto base_addr = static_cast<const char*>(opt.deferred_cmds.front().src);
auto end_addr = static_cast<const char*>(opt.deferred_cmds.back().src) + opt.deferred_cmds.back().length;
auto data_length = end_addr - base_addr;
auto data_length = static_cast<u32>(end_addr - base_addr);
u64 src_address = 0;
if (uptr(base_addr) > uptr(vm::g_sudo_addr))