To be able to regenerate compositor shaders from Windows.
Bug: 389646068
Test: ./generate-compositor-shader-headers.py
Change-Id: Icb91fedc5d85cf4ac4e9f407ba05acb52fe0b379
Helps generate exactly the same shader header when compiled from
Windows.
Bug: 389646068
Test: generate-compositor-shader-headers
Change-Id: Ie4738d6c346f4178eaf5dfe7d8f086ce59783b62
To be able to recompile when needed and reflect the recent
codegen related changes.
Bug: 420586022
Test: ./scripts/generate-compositor-shader-headers.sh
Change-Id: I8db822dcacba74bf2a1baf7bb2a27f4b0e8ba5ed
Includes a small change to keep using MTLResource_id
which actually didn't make it into the spec.
A typo fix in vulkansc_raii.hpp
Fixes on end2end tests for vulkanhpp changes.
Change to enable comparison operators on handles even when
the spaceship operator is available, to avoid errors on
old compilers where they are not generated.
Bug: 417150515
Test: CI
Test: dEQP-VK.api.info.vulkan1p2
Test: atest GfxstreamEnd2EndTests
Change-Id: Ic9b9256541dde50b77c4d6d63d277bc222a64157
Track pipeline layout creation and destroy calls
to cleanup them correctly on device teardown.
Pipeline layouts require delayed delete operations for
VulkanQueueSubmitWithCommands feature which modifies order
of commands and they need to stay valid during recording.
Bug: 342343008
Test: run and shutdown gltfviewer with VVL
Change-Id: I465a8e3f6ed7e621470f32cdb7cda91ec3dcbba6
Add missing alias for the vkCmd function to the vk.xml to be
able to use it correctly at the host side decoder and subdecoder.
Bug: 357829977
Test: dEQP-VK.dynamic_state.monolithic.line_width.
Change-Id: If81e932ae9527eab8d0b09e2c3446f2f4c526bc6
With recent mesa related changes, we started using a recent version of
vk.xml and this promoted extension was being used as EXT in our codegen
scripts. This resulted in some code loss, skips on pNext chain of
commands sent from the guest side and eventually CTS/dEQP failures.
Updating vulkan headers partially with this change to accomodate KHR
version of the extension correctly.
Bug: b/357832421
Test: dEQP-VK.api.info.vulkan1p2_limits_validation*
Change-Id: I53fbb2742a846dbce55080deb46f5e4fd46e6c11
We have two versions of the same code, and we keep it
in sync via batch updates.
BUG=369906368
TEST=CI
Change-Id: I6852092fdd9e8a72d9921e693870722337c376cb
Mostly just change the locations of directories.
One exception is aosp/3271678, which needs to land in the
Mesa codegen directory.
For workflows without an AOSP tree, one can just pass in
the path to Mesa tree.
Mesa uses a newer version of vk.xml than the host does,
so some changes are observed.
BUG=369200554
TEST=generate-gfxstream-vulkan.sh in AOSP
or
cd ~/
git clone https://gitlab.freedesktop.org/mesa/mesa.git
cd ${gfxstream_dir}
./scripts/generate-gfxstream-vulkan.sh ~/mesa
Change-Id: I5a023ed4d8788a31f352d017f321656c7b7a7410
This simplifies the amount of code imported from Vulkan
docs. It vendors the code to just a subset needed by
the cerealgenerator. The files that are kept are:
- generator.py
- cgenerator.py
- reg.py
- genvk.py
Since these files originate with Khronos, they are
Apache licensed.
Long-term, there are various ideas on how to proceed
with codegen. Probably the above files can be nuked
in the event some of those ideas come to pass.
BUG=296903491
TEST=./generate-gfxstream-vulkan.sh
Change-Id: I55842e778af9b71ceab2dcaf1c2d7aafebe86b14
Partial update to vulkan headers and auto generated code to
include the new extension. It will be used to fix issues on
external memory implementation with MoltenVK later on.
References:
Khronos MR 6800
MoltenVK PR 2314
Bug: b/349066492
Test: build & presubmit
Change-Id: I91f0e6c73bfa3c8c13b8008b7913d72fda371403
* changes:
Switch inline shaders to std::vector<uint32_t>
Move end2end shaders into a subdirectory
Update glsl to c++ spirv array script to include source
Use gfxstream::expected for end2end tests
New protocol which instructs the host to share sync descriptor
with ExternalObjectManager.
BUG=350965057
TEST=compile
Change-Id: Ia009c0278a02d631ff2f8edd18bee85bbaa030f3
... as these are easier to pass around in upcoming helper
functions.
Bug: b/347288539
Test: GfxstreamEnd2EndTests
Change-Id: I1d65fc2b8e14d44c873b6b63dce49ee0718b5bad
These APIs and the related extension are deprecated in favor of the new
metal_objects extension to make sure the loader can intercept them, so that the layers, such as VVL, would work fine.
Removes necessity to load functions directly from a separate dylib.
VK_MVK_moltenvk extension support is still passed to the guest side
due to the existing checks for enabling the AHB extension.
Bug: 333460957
Test: run with swiftshader, host and use-host-vulkan arguments on MacOS
Change-Id: I17ce958bc6498029ad4c525e80764060f88df118
Some code may be auto-generated, some may not be.
Eventually we want to move autogenerated code into specialized
directories, so it be generated but not necessarily checked
in [for certain cases].
Also, nuke codegen for CMakeLists.txt: we have multiple other
build systems now (Blueprint, meson), and it doesn't make
sense codegen one anymore.
BUG=296903491
TEST=compile
Change-Id: I63beff1726074268188694fbfeb803429ee96478
... and add script to build a version of the Vulkan Loader which
uses "GFXSTREAM" prefixed env vars and logging.
Bug: b/315317383
Test: deqp-vk w/ Gfxstream ICD
Change-Id: I7202379dbc27a9519b55434e889139810078020d
Use vulkan-docs-next: a newer and less-forky version of same repo.
Eventually, vulkan-docs-next can be renamed too, but not
now to make cherry-picks easier. Maybe we can upstream
the cerealgenerator to the official Vulkan docs too.
BUG=310206667
TEST=compile
Change-Id: I35011f760fadb7042455642904f7def672a30633
This modifies gfxstream to use standard Vulkan headers,
and updates to 1.3.269.
Previously, the headers were mostly standard, but added in
vk_android_native_buffer into vulkan_core.h. That breaks down
when using auto-gen scripts from outside gfxstream, which will
happen in a subsequent patchset.
For vk_native_buffer_android, we can simply provide a
vk_android_native_buffer_gfxstream.h.
Long-term, vk_native_buffer_android.h should be deprecated in
favor of VK_ANDROID_external_memory_android_hardware_buffer, in
Android's libvulkan and elsewhere.
For the Vulkan headers, the new procedure is generate them in the
directions found here in the following repos:
https://github.com/KhronosGroup/Vulkan-Headershttps://github.com/KhronosGroup/Vulkan-Hpp
Those headers can be copied over using cp. For gfxstream encoder
+ decoders, that's still generated via ./generate-gfxstream-vulkan.sh
The only catch is you must use the same vk.xml for Vulkan-Headers,
Vulkan-Hpp, and for the cereal generator. The recommended flow
is use whatever the xml is in Vulkan-Headers ToT and copy to
Vulkan-Hpp and cerealgenerator.py before running those scripts.
The End2End tests that relied on vk_android_native_buffer were
also modified. Long-term, the AHB extension could be used
instead of ANB for tests.
BUG=310206667
TEST=launch_cvd --gpu_mode=gfxstream_guest_angle
Change-Id: Ib43d8555cf37a9e9a7189ec7597f78f12cd53b5d
Simpler version of the generate-vulkan-sources.sh
script.
BUG=310206667
TEST=launch_cvd --gpu_mode=gfxstream_guest_angle
Change-Id: Ie24b8846e87aad7dec1fc681364cbe64b64401df
... to avoid conflicts with
hardware/google/gfxstream/include/render-utils/IOStream.h
when the guest is built for the host
for end2end tests.
Bug: b/292257025
Test: cvd start --gpu_mode=gfxstream
Change-Id: I2f2d5b7d670e67953d89142fd152d089ac40b13e
Don't remove the existing header directory, since it
deletes build files.
BUG=296903491
TEST=generate-vulkan-source.sh
Change-Id: Ife2b6fa38cc462e1af32d9f632ba4326afc3a5ed
This commit updates vk.xml and code generator to make them backward
compatible. The updates in code generator includes:
1. Parse "protect" properly.
2. Ignore "optional" if the "optional" was added in newer vk.xml.
- This is done by having an extra table for related fields.
3. Parse latexmath properly.
4. Parse "supported" properly.
5. Skip parameters and members if they are not for Vulkan API.
6. VkNativeBufferANDROID diverged from upstream, keep the old one.
Bug: 293346694
Test: rebuild and run aemu with older system images
Change-Id: I72dad62bcbeb041bb49f1a6467ec5af2a1ef7960
This would make our life easier when updating vk.xml.
Also remove MoltenVK specific bits, as the guest is not supposed
to directly call MoltenVK.
Bug: 294595194
Test: rerun code generator, get almost the same code
Change-Id: I8ac88c69aa968607d6e2c7a22972554a20e28255
- AOSP paths is no longer necessary, everything is in the
gfxstream repo.
- We shouldn't need to create any new directories.
BUG=295248855
TEST=run codegen, see minimal modifications caused by this change
Change-Id: Iac63276a51db9842c064093d09377875acbc4bd1
... by replacing the underlying host image with a new host image
created using the usual vkCreateImage() with VkNativeBufferANDROID.
Bug: b/286234683
Test: cvd start --gpu_mode=gfxstream_guest_angle
Test: cvd start --gpu_mode=gfxstream_guest_angle_host_swiftshader
Change-Id: I7fd7fb635417b2512691bc699f8a344b2bf757c2
Merged-In: I7fd7fb635417b2512691bc699f8a344b2bf757c2
... to ensure new paths work.
Bug: b/271464937
Test: mkdir build
cd build
cmake . ../
make gfxstream-generic-apigen
cd ..
./scripts/generate-apigen-sources.sh
Change-Id: If316939d8c767dde0cc6f5e222bc7e97a8c543f8