renderControl_enc: (2/3) Pass mapping size to rcMapGpaToBufferHandle().
This changes adds guest-side support to new renderControl method
rcMapGpaToBufferHandle2(uint32_t bufferHandle,
uint64_t gpa,
uint64_t size);
For details see aosp/1427447.
Change-Id: Ia5d03459c0ead91d192fec24b2b0af7dc8123338
diff --git a/system/renderControl_enc/renderControl_client_context.cpp b/system/renderControl_enc/renderControl_client_context.cpp
index ded019b..5b1f14e 100644
--- a/system/renderControl_enc/renderControl_client_context.cpp
+++ b/system/renderControl_enc/renderControl_client_context.cpp
@@ -64,6 +64,7 @@
rcSetColorBufferVulkanMode2 = (rcSetColorBufferVulkanMode2_client_proc_t) getProc("rcSetColorBufferVulkanMode2", userData);
rcMapGpaToBufferHandle = (rcMapGpaToBufferHandle_client_proc_t) getProc("rcMapGpaToBufferHandle", userData);
rcCreateBuffer2 = (rcCreateBuffer2_client_proc_t) getProc("rcCreateBuffer2", userData);
+ rcMapGpaToBufferHandle2 = (rcMapGpaToBufferHandle2_client_proc_t) getProc("rcMapGpaToBufferHandle2", userData);
return 0;
}