Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate the SPIR-V shaders automatically at build time #2200

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ahesham-arm
Copy link
Contributor

Add custom commands and targets to automatically assemble and validate the SPIR-V shaders used by the test.

Automatic assembly depends on finding python3, spirv-as and spirv-val. SPIRV_TOOLS_DIR can be defined by the user during configuration to provide an override path. Default behaviour assumes that the binaries exist in PATH.

`FindPython3` and `FindPython2` were added in version 3.12. Used by
the spirv_new suite.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
Move the SPIR-V assembly helper Python script to the `spirv_asm`
subdirectory.

Add custom commands and targets to automatically assemble and validate
the SPIR-V shaders used by the test.

Automatic assembly depends on finding `python3`, `spirv-as` and
`spirv-val`. `SPIRV_TOOLS_DIR` can be defined by the user during
configuration to provide an override path. Default behaviour assumes
that the binaries exist in PATH.

Signed-off-by: Ahmed Hesham <ahmed.hesham@arm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant