Fix linux compile error
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2069633002 TBR=egdaniel@google.com Review-Url: https://codereview.chromium.org/2069633002
This commit is contained in:
parent
d76fcda961
commit
7378ac8e1e
@ -59,7 +59,7 @@ bool GrVkMemory::AllocAndBindBufferMemory(const GrVkGpu* gpu,
|
||||
VkMemoryPropertyFlags desiredMemProps = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
|
||||
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT |
|
||||
VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
|
||||
uint32_t typeIndex;
|
||||
uint32_t typeIndex = 0;
|
||||
if (!get_valid_memory_type_index(gpu->physicalDeviceMemoryProperties(),
|
||||
memReqs.memoryTypeBits,
|
||||
desiredMemProps,
|
||||
@ -118,7 +118,7 @@ bool GrVkMemory::AllocAndBindImageMemory(const GrVkGpu* gpu,
|
||||
VkMemoryRequirements memReqs;
|
||||
GR_VK_CALL(iface, GetImageMemoryRequirements(device, image, &memReqs));
|
||||
|
||||
uint32_t typeIndex;
|
||||
uint32_t typeIndex = 0;
|
||||
GrVkHeap* heap;
|
||||
if (linearTiling) {
|
||||
VkMemoryPropertyFlags desiredMemProps = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
|
||||
|
Loading…
Reference in New Issue
Block a user