comp: Remaining 32-bit warning fixes

This commit is contained in:
Ryan Pavlik 2020-04-29 17:47:32 -05:00
parent 233c63a773
commit 457d411016
2 changed files with 5 additions and 2 deletions

View file

@ -17,6 +17,7 @@
#include "ogl/ogl_api.h"
#include "client/comp_gl_client.h"
#include <inttypes.h>
/*
*
@ -169,7 +170,9 @@ vk_format_to_gl(int64_t format)
case 44 /*VK_FORMAT_B8G8R8A8_UNORM*/: return 0;
case 50 /*VK_FORMAT_B8G8R8A8_SRGB*/: return 0;
default:
printf("Cannot convert VK format %ld to GL format!\n", format);
printf("Cannot convert VK format 0x%016" PRIx64
" to GL format!\n",
format);
return 0;
}
}

View file

@ -95,7 +95,7 @@ create_image_fd(struct comp_compositor *c,
VkDeviceMemory device_memory = VK_NULL_HANDLE;
VkImage image = VK_NULL_HANDLE;
VkResult ret = VK_SUCCESS;
size_t size;
VkDeviceSize size;
int fd;
COMP_SPEW(c, "->image - vkCreateImage %dx%d", width, height);