gfxstream: vulkan-docs: add cereal generator

This adds custom the cereal generator as an option to genvk.py
gfxstream specific options like "-registryGfxstream" are also
added.

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:
Gurchetan Singh 2023-11-07 09:38:12 -07:00 committed by Marge Bot
parent bd8eb080ff
commit f0fc91acff

View file

@ -40,6 +40,9 @@ from reg import Registry
from validitygenerator import ValidityOutputGenerator
from apiconventions import APIConventions
# gfxstream + cereal modules
from cerealgenerator import CerealGenerator
# Simple timer functions
startTime = None
@ -949,6 +952,33 @@ def makeGenOpts(args):
alignFuncParam = 36)
]
# Serializer for spec
genOpts['cereal'] = [
CerealGenerator,
CGeneratorOptions(
conventions = conventions,
filename = "CMakeLists.txt",
directory = directory,
apiname = 'vulkan',
profile = None,
versions = featuresPat,
emitversions = featuresPat,
defaultExtensions = defaultExtensions,
addExtensions = None,
removeExtensions = None,
emitExtensions = emitExtensionsPat,
prefixText = prefixStrings + vkPrefixStrings,
genFuncPointers = True,
protectFile = protectFile,
protectFeature = False,
protectProto = '#ifndef',
protectProtoStr = 'VK_NO_PROTOTYPES',
apicall = 'VKAPI_ATTR ',
apientry = 'VKAPI_CALL ',
apientryp = 'VKAPI_PTR *',
alignFuncParam = 48)
]
def genTarget(args):
"""Create an API generator and corresponding generator options based on