mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
nvk: Fix uninitialized var warnings in host_copy
Fixes: 6c5420cd30 ("nvk: Add host copy functions")
Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32667>
This commit is contained in:
parent
8e8097245f
commit
5a65300439
1 changed files with 3 additions and 3 deletions
|
|
@ -180,7 +180,7 @@ nvk_CopyMemoryToImageEXT(VkDevice _device,
|
|||
{
|
||||
VK_FROM_HANDLE(nvk_image, dst_image, info->dstImage);
|
||||
|
||||
VkResult result;
|
||||
VkResult result = VK_SUCCESS;
|
||||
|
||||
/* From the EXT spec:
|
||||
* VK_HOST_IMAGE_COPY_MEMCPY_EXT specifies that no memory layout swizzling is
|
||||
|
|
@ -306,7 +306,7 @@ nvk_CopyImageToMemoryEXT(VkDevice _device,
|
|||
{
|
||||
VK_FROM_HANDLE(nvk_image, image, info->srcImage);
|
||||
|
||||
VkResult result;
|
||||
VkResult result = VK_SUCCESS;
|
||||
|
||||
const bool use_memcpy = info->flags &
|
||||
VK_HOST_IMAGE_COPY_MEMCPY_EXT;
|
||||
|
|
@ -544,7 +544,7 @@ nvk_CopyImageToImageEXT(VkDevice _device,
|
|||
VK_FROM_HANDLE(nvk_image, src, pCopyImageToImageInfo->srcImage);
|
||||
VK_FROM_HANDLE(nvk_image, dst, pCopyImageToImageInfo->dstImage);
|
||||
|
||||
VkResult result;
|
||||
VkResult result = VK_SUCCESS;
|
||||
|
||||
for (unsigned r = 0; r < pCopyImageToImageInfo->regionCount; r++) {
|
||||
result = nvk_copy_image_to_image(device, src, dst,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue