Skip to content

Commit d1f6e88

Browse files
committed
Automatically assemble SPIR-V shaders for the spirv_new suite
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 <[email protected]>
1 parent 48aff0a commit d1f6e88

File tree

3 files changed

+505
-0
lines changed

3 files changed

+505
-0
lines changed

test_conformance/spirv_new/CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,6 @@ endif()
4242
set(${MODULE_NAME}_SOURCES ${${MODULE_NAME}_SOURCES} ${TEST_HARNESS_SOURCES})
4343

4444
include(../CMakeCommon.txt)
45+
46+
add_subdirectory(spirv_asm)
47+
add_dependencies(${${MODULE_NAME}_OUT} spirv_new_binaries)

0 commit comments

Comments
 (0)