mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
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:
parent
bd8eb080ff
commit
f0fc91acff
1 changed files with 30 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue