Add snasphot support for vk coherent memory

This commit tracks more functions related to coherent memory snapshot
and saves the memory content.

At this point we are not sure if we need to manually copy the memory
content, because they are supposed to be cloned in RAM snapshot. We
could revert that part if they turn out to be unnecessary in future.

Reviewed-by: Aaron Ruby <aruby@blackberry.com>
Acked-by: Yonggang Luo <luoyonggang@gmail.com>
Acked-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27246>
This commit is contained in:
Yahan Zhou 2024-01-24 15:38:37 -08:00 committed by Marge Bot
parent 6af6eb87c6
commit 67203e1574

View file

@ -112,6 +112,7 @@ apiSequences = {
apiModifies = {
"vkMapMemoryIntoAddressSpaceGOOGLE" : ["memory"],
"vkGetBlobGOOGLE" : ["memory"],
}
def is_modify_operation(api, param):
@ -121,9 +122,6 @@ def is_modify_operation(api, param):
return False
def emit_impl(typeInfo, api, cgen):
cgen.line("// TODO: Implement")
for p in api.parameters:
if not (p.isHandleType):
continue