mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
zink/codegen: make zink_device_info accept vk.xml
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9021>
This commit is contained in:
parent
3d36bfd21f
commit
33d006f565
2 changed files with 7 additions and 3 deletions
|
|
@ -46,7 +46,7 @@ zink_device_info = custom_target(
|
|||
input : ['zink_device_info.py'],
|
||||
output : ['zink_device_info.h', 'zink_device_info.c'],
|
||||
command : [
|
||||
prog_python, '@INPUT@', '@OUTPUT@'
|
||||
prog_python, '@INPUT@', '@OUTPUT@', join_paths(meson.source_root(), 'src/vulkan/registry/vk.xml')
|
||||
]
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
from mako.template import Template
|
||||
from mako.lookup import TemplateLookup
|
||||
from os import path
|
||||
from zink_extensions import Extension,Version
|
||||
from zink_extensions import Extension,ExtensionRegistry,Version
|
||||
import sys
|
||||
|
||||
# constructor:
|
||||
|
|
@ -390,13 +390,17 @@ if __name__ == "__main__":
|
|||
try:
|
||||
header_path = sys.argv[1]
|
||||
impl_path = sys.argv[2]
|
||||
vkxml_path = sys.argv[3]
|
||||
|
||||
header_path = path.abspath(header_path)
|
||||
impl_path = path.abspath(impl_path)
|
||||
vkxml_path = path.abspath(vkxml_path)
|
||||
except:
|
||||
print("usage: %s <path to .h> <path to .c>" % sys.argv[0])
|
||||
print("usage: %s <path to .h> <path to .c> <path to vk.xml>" % sys.argv[0])
|
||||
exit(1)
|
||||
|
||||
registry = ExtensionRegistry(vkxml_path)
|
||||
|
||||
extensions = EXTENSIONS
|
||||
versions = VERSIONS
|
||||
replacement = REPLACEMENTS
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue