Skip to content

Commit

Permalink
Automatically assemble SPIR-V shaders for the spirv_new suite
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ahesham-arm committed Dec 20, 2024
1 parent 48aff0a commit 6a3b0c8
Show file tree
Hide file tree
Showing 3 changed files with 502 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test_conformance/spirv_new/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,6 @@ endif()
set(${MODULE_NAME}_SOURCES ${${MODULE_NAME}_SOURCES} ${TEST_HARNESS_SOURCES})

include(../CMakeCommon.txt)

add_subdirectory(spirv_asm)
add_dependencies(${${MODULE_NAME}_OUT} spirv_new_shaders)
Loading

0 comments on commit 6a3b0c8

Please sign in to comment.