From ebe8ddefc48478307d5f206cd3e40c41d28a36e3 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 26 Sep 2023 23:56:06 -0700 Subject: Various SPIRV fixes. (#3231) * Various SPIRV fixes. - Geometry shader support (WIP). - Fix texture get dimension and load. - Fold global GetElement(MakeArray/MakeVector) insts. - Call spvopt to inline all functions. - Translate OpImageSubscript. - Emit struct member names and global variable names. - Fix lowering of OpBitNot -> OpNot, instead of OpBitReverse. * Fix test. * Fix geometry shader. * Fix geometry shader emit. * Add atomic Image access test. * Fix tests. * don't fail if spirv-opt fails. * Update comments. * Fix test. * Cleanups. * indentation --------- Co-authored-by: Yong He Co-authored-by: Ellie Hermaszewska --- source/slang/slang-spirv-val.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/slang/slang-spirv-val.cpp') diff --git a/source/slang/slang-spirv-val.cpp b/source/slang/slang-spirv-val.cpp index a6bc29306..b5a02f3fe 100644 --- a/source/slang/slang-spirv-val.cpp +++ b/source/slang/slang-spirv-val.cpp @@ -55,6 +55,7 @@ SlangResult debugValidateSPIRV(const List& spirv) commandLine.m_executableLocation.setName("spirv-val"); commandLine.addArg("--target-env"); commandLine.addArg("vulkan1.2"); + commandLine.addArg("--scalar-block-layout"); RefPtr p; const auto createResult = Process::create(commandLine, 0, p); // If we failed to even start the process, then validation isn't available -- cgit v1.2.3