fuchsia: Fix build
This fixes some Fuchsia-specific build errors and removed
warnings (which are strict errors in Fuchsia build configuration).
Test: fx build
Change-Id: If3fea8dc2bce8a9395b4224b7188c9bc7e3d059a
diff --git a/system/vulkan_enc/CommandBufferStagingStream.cpp b/system/vulkan_enc/CommandBufferStagingStream.cpp
index 8487bcd..3a150c4 100644
--- a/system/vulkan_enc/CommandBufferStagingStream.cpp
+++ b/system/vulkan_enc/CommandBufferStagingStream.cpp
@@ -56,7 +56,7 @@
// \param size to allocate
// \return ptr starting at data
- m_alloc = [&allocFn, this](size_t size) -> Memory {
+ m_alloc = [&allocFn](size_t size) -> Memory {
// allocation requested size + sync data size
// <---sync bytes--><----Data--->
diff --git a/system/vulkan_enc/ResourceTracker.cpp b/system/vulkan_enc/ResourceTracker.cpp
index 023cca1..2b4096e 100644
--- a/system/vulkan_enc/ResourceTracker.cpp
+++ b/system/vulkan_enc/ResourceTracker.cpp
@@ -3221,13 +3221,13 @@
!importBufferCollectionInfoPtr &&
!importVmoInfoPtr;
-#if defined(VK_USE_PLATFORM_ANDROID_KHR) || defined(__linux__)
const VkPhysicalDeviceMemoryProperties& physicalDeviceMemoryProps
= getPhysicalDeviceMemoryProperties(context, device, VK_NULL_HANDLE);
const bool requestedMemoryIsHostVisible =
isHostVisible(&physicalDeviceMemoryProps, pAllocateInfo->memoryTypeIndex);
+#if defined(VK_USE_PLATFORM_ANDROID_KHR) || defined(__linux__)
shouldPassThroughDedicatedAllocInfo &= !requestedMemoryIsHostVisible;
if (!exportAllocateInfoPtr &&