gfxstream: conditionals for using gfxstream::aemu
It's a guest-only build target, and shouldn't be on the host. Reviewed-by: Marcin Radomski <dextero@google.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32148>
This commit is contained in:
committed by
Marge Bot
parent
04f5bfaee6
commit
9a1654f5ce
@@ -800,8 +800,10 @@ class CodeGen(object):
|
||||
accessType.getForNonConstAccess(), useParamName=False)
|
||||
|
||||
ptrCast = "(uintptr_t)" if needPtrCast else ""
|
||||
|
||||
streamNamespace = "gfxstream::aemu"
|
||||
if variant == "guest":
|
||||
streamNamespace = "gfxstream::aemu"
|
||||
else:
|
||||
streamNamespace = "android::base"
|
||||
|
||||
if direction == "read":
|
||||
self.stmt("memcpy((%s*)&%s, %s, %s)" %
|
||||
|
||||
@@ -114,7 +114,10 @@ class VulkanReservedMarshalingCodegen(VulkanTypeIterator):
|
||||
else:
|
||||
pass
|
||||
|
||||
streamNamespace = "gfxstream::aemu"
|
||||
if self.variant == "guest":
|
||||
streamNamespace = "gfxstream::aemu"
|
||||
else:
|
||||
streamNamespace = "android::base"
|
||||
if self.direction == "write":
|
||||
self.cgen.stmt("%s::Stream::%s((uint8_t*)*%s)" % (streamNamespace, streamMethod, varname))
|
||||
else:
|
||||
@@ -970,7 +973,10 @@ class VulkanReservedMarshaling(VulkanWrapperGenerator):
|
||||
|
||||
cgen.line("// known or null extension struct")
|
||||
|
||||
streamNamespace = "gfxstream::aemu"
|
||||
if self.variant == "guest":
|
||||
streamNamespace = "gfxstream::aemu"
|
||||
else:
|
||||
streamNamespace = "android::base"
|
||||
|
||||
if direction == "write":
|
||||
cgen.stmt("memcpy(*%s, &%s, sizeof(uint32_t));" % (self.ptrVarName, sizeVar))
|
||||
|
||||
Reference in New Issue
Block a user