Reduce color buffer not found log spam
In AEMU, color buffers are not always backed by Vulkan especially for
older APIs. Reduce the log spam by making it verbose instead of error
log when a color buffer is not registerd to Vulkan.
Bug: 240577449
Change-Id: Ibd7f8b56eb58dc8d91b46deab157826fd4d50c4d
diff --git a/stream-servers/vulkan/VkCommonOperations.cpp b/stream-servers/vulkan/VkCommonOperations.cpp
index 10715d2..351cfb2 100644
--- a/stream-servers/vulkan/VkCommonOperations.cpp
+++ b/stream-servers/vulkan/VkCommonOperations.cpp
@@ -1880,7 +1880,7 @@
bool readColorBufferToGl(uint32_t colorBufferHandle) {
if (!sVkEmulation || !sVkEmulation->live) {
- VK_COMMON_ERROR("VkEmulation not available.");
+ VK_COMMON_VERBOSE("VkEmulation not available.");
return false;
}
@@ -1890,7 +1890,7 @@
auto colorBufferInfo = android::base::find(sVkEmulation->colorBuffers, colorBufferHandle);
if (!colorBufferInfo) {
- VK_COMMON_ERROR("Failed to read from ColorBuffer:%d, not found.", colorBufferHandle);
+ VK_COMMON_VERBOSE("Failed to read from ColorBuffer:%d, not found.", colorBufferHandle);
return false;
}
@@ -2072,7 +2072,7 @@
bool updateColorBufferFromGl(uint32_t colorBufferHandle) {
if (!sVkEmulation || !sVkEmulation->live) {
- VK_COMMON_ERROR("VkEmulation not available.");
+ VK_COMMON_VERBOSE("VkEmulation not available.");
return false;
}
@@ -2080,7 +2080,7 @@
auto colorBufferInfo = android::base::find(sVkEmulation->colorBuffers, colorBufferHandle);
if (!colorBufferInfo) {
- VK_COMMON_ERROR("Failed to update ColorBuffer:%d, not found.", colorBufferHandle);
+ VK_COMMON_VERBOSE("Failed to update ColorBuffer:%d, not found.", colorBufferHandle);
return false;
}