summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYahan Zhou <yahan@google.com>2023-08-25 13:58:38 -0700
committerYahan Zhou <yahan@google.com>2023-08-28 11:11:24 -0700
commit5916c2d42b2d7509345834f4a29147a828c5d843 (patch)
tree0239c449543f9d05652138a258721a037ce8f0d8
parent99d0cb9aeb20e2d3843e306457adb6fbd46ec313 (diff)
downloadvulkan-cereal-5916c2d42b2d7509345834f4a29147a828c5d843.tar.gz
Build fix after vk1.3 update
Bug: 293346694 Test: checkEqual_VkNativeBufferANDROID Change-Id: I30b998a0fca0efebaf6f348c8d7af313559df317 Merged-In: I30b998a0fca0efebaf6f348c8d7af313559df317
-rw-r--r--stream-servers/vulkan/cereal/common/goldfish_vk_marshaling.cpp8
-rw-r--r--stream-servers/vulkan/cereal/common/goldfish_vk_reserved_marshaling.cpp4
-rw-r--r--stream-servers/vulkan/cereal/common/goldfish_vk_testing.cpp4
3 files changed, 8 insertions, 8 deletions
diff --git a/stream-servers/vulkan/cereal/common/goldfish_vk_marshaling.cpp b/stream-servers/vulkan/cereal/common/goldfish_vk_marshaling.cpp
index e2d9ba0a..3df97465 100644
--- a/stream-servers/vulkan/cereal/common/goldfish_vk_marshaling.cpp
+++ b/stream-servers/vulkan/cereal/common/goldfish_vk_marshaling.cpp
@@ -17409,8 +17409,8 @@ void marshal_VkNativeBufferANDROID(VulkanStream* vkStream, VkStructureType rootT
vkStream->write((int*)&forMarshaling->stride, sizeof(int));
vkStream->write((int*)&forMarshaling->format, sizeof(int));
vkStream->write((int*)&forMarshaling->usage, sizeof(int));
- vkStream->write((uint64_t*)&forMarshaling->consumer, sizeof(uint64_t));
- vkStream->write((uint64_t*)&forMarshaling->producer, sizeof(uint64_t));
+ vkStream->write((uint64_t*)&forMarshaling->usage2.consumer, sizeof(uint64_t));
+ vkStream->write((uint64_t*)&forMarshaling->usage2.producer, sizeof(uint64_t));
}
void unmarshal_VkNativeBufferANDROID(VulkanStream* vkStream, VkStructureType rootType,
@@ -17442,8 +17442,8 @@ void unmarshal_VkNativeBufferANDROID(VulkanStream* vkStream, VkStructureType roo
vkStream->read((int*)&forUnmarshaling->stride, sizeof(int));
vkStream->read((int*)&forUnmarshaling->format, sizeof(int));
vkStream->read((int*)&forUnmarshaling->usage, sizeof(int));
- vkStream->read((uint64_t*)&forUnmarshaling->consumer, sizeof(uint64_t));
- vkStream->read((uint64_t*)&forUnmarshaling->producer, sizeof(uint64_t));
+ vkStream->read((uint64_t*)&forUnmarshaling->usage2.consumer, sizeof(uint64_t));
+ vkStream->read((uint64_t*)&forUnmarshaling->usage2.producer, sizeof(uint64_t));
}
#endif
diff --git a/stream-servers/vulkan/cereal/common/goldfish_vk_reserved_marshaling.cpp b/stream-servers/vulkan/cereal/common/goldfish_vk_reserved_marshaling.cpp
index c49f4783..b97730a6 100644
--- a/stream-servers/vulkan/cereal/common/goldfish_vk_reserved_marshaling.cpp
+++ b/stream-servers/vulkan/cereal/common/goldfish_vk_reserved_marshaling.cpp
@@ -13555,9 +13555,9 @@ void reservedunmarshal_VkNativeBufferANDROID(VulkanStream* vkStream, VkStructure
*ptr += sizeof(int);
memcpy((int*)&forUnmarshaling->usage, *ptr, sizeof(int));
*ptr += sizeof(int);
- memcpy((uint64_t*)&forUnmarshaling->consumer, *ptr, sizeof(uint64_t));
+ memcpy((uint64_t*)&forUnmarshaling->usage2.consumer, *ptr, sizeof(uint64_t));
*ptr += sizeof(uint64_t);
- memcpy((uint64_t*)&forUnmarshaling->producer, *ptr, sizeof(uint64_t));
+ memcpy((uint64_t*)&forUnmarshaling->usage2.producer, *ptr, sizeof(uint64_t));
*ptr += sizeof(uint64_t);
}
diff --git a/stream-servers/vulkan/cereal/common/goldfish_vk_testing.cpp b/stream-servers/vulkan/cereal/common/goldfish_vk_testing.cpp
index 19450c0b..f6659069 100644
--- a/stream-servers/vulkan/cereal/common/goldfish_vk_testing.cpp
+++ b/stream-servers/vulkan/cereal/common/goldfish_vk_testing.cpp
@@ -9854,10 +9854,10 @@ void checkEqual_VkNativeBufferANDROID(const VkNativeBufferANDROID* a,
if (!((a->usage) == (b->usage))) {
onFail("a->usage (Error: Value not equal)");
};
- if (!((a->consumer) == (b->consumer))) {
+ if (!((a->usage2.consumer) == (b->usage2.consumer))) {
onFail("a->consumer (Error: Value not equal)");
};
- if (!((a->producer) == (b->producer))) {
+ if (!((a->usage2.producer) == (b->usage2.producer))) {
onFail("a->producer (Error: Value not equal)");
};
}