Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 904accc9 authored by mridulgoyal's avatar mridulgoyal Committed by Mridul Goyal
Browse files

CodeGen(vk_parser): Refine vk.xml parsing and vk.py generation for vkjson

Updates vk_parser.py for more precise vk.xml parsing and improved vk.py
output. The generated vk.py serves as an intermediate for
vkjson_generator.py, aiding generation of vkjsons.

Key changes:
- Integrated new structs and extensions into vkjson.
- Updated naming logic in vkjson_generator.py for consistency.
- Extended vkjson_generator to handle new vkjson structures and extensions comprehensively.
- Added detailed comments to vk.py explaining the generation filters for key mappings, improving clarity.
- Improved the output formatting and overall structure of vk.py for better readability.
- Applied generation filters in vk.py to include `VkPhysicalDevice`-prefixed structs (specifically those extending `Properties2` or `Features2` for mapping generation, along with their dependencies) and extensions marked as 'supported' (or without a platform specification, or targeting 'android').
-Added code generation for fetching VKFormat from extensions and vulkan
versions tags in vk.xml
- Added 'VK_USE_PLATFORM_ANDROID_KHR' to vkjson.h for new structures defined in 'vulkan_android.h' header file (like VkPhysicalDeviceExternalFormatResolveFeaturesANDROID).

TODO:
- b/415704124 [CodeGen] Pending Codegen Improvements

BYPASS_LARGE_CHANGE_WARNING

Test: adb shell cmd gpu vkjson
Flag: NONE infeasible
Bug: b/401184058
Change-Id: I0692e601a51fa8eaa04a30afcc3330bedeb1a833
parent 94ce01a7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment