-
Notifications
You must be signed in to change notification settings - Fork 263
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
Migrate extension headers from SPIRV-Tools to SPIRV-Headers #137
Comments
amaiorano
pushed a commit
to amaiorano/swiftshader
that referenced
this issue
Jan 17, 2020
SPIRV-Tools generates extension header files into the the project's intermediate build directory. SpirvShader needs to include `OpenCLDebugInfo100.h`, so copy this out to a "clean room" include directory and add this directory to the vk_swiftshader INCLUDE_DIRECTORIES. All of this smell should go away once KhronosGroup/SPIRV-Headers#137 is addressed. Bug: b/145351270 Change-Id: Ib9205e04d32e2d8e0a6516449ec9114a3ff6dd94 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40090 Reviewed-by: Nicolas Capens <[email protected]> Tested-by: Ben Clayton <[email protected]>
amaiorano
pushed a commit
to amaiorano/swiftshader
that referenced
this issue
Jan 17, 2020
37f3018 added CMake rules to copy the `OpenCLDebugInfo100.h` header out of a polluted build intermediate directory and into a separate include directory. Add this include directory to the .vscode include paths so vscode can also find it. All of this smell should go away once KhronosGroup/SPIRV-Headers#137 is addressed. Bug: b/145351270 Change-Id: I1a20e6f6b507e10c90fed38dd8a94d4b3ff590f7 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/40129 Reviewed-by: Antonio Maiorano <[email protected]> Reviewed-by: Nicolas Capens <[email protected]> Tested-by: Ben Clayton <[email protected]> Kokoro-Presubmit: kokoro <[email protected]>
https://swiftshader-review.googlesource.com/c/SwiftShader/+/43428 was landed as a workaround in SwiftShader. We can remove that section from our CMakeLists.txt once this gets addressed in SPIRV-Headers. |
ben-clayton
added a commit
to ben-clayton/swiftshader
that referenced
this issue
Apr 21, 2020
KhronosGroup/SPIRV-Headers#137 is still ongoing. Fixes: b/15093697 Change-Id: I2498f35a8049fb2a1a86aa0efe6fbd6e59ad6493 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43428 Reviewed-by: Antonio Maiorano <[email protected]> Tested-by: Ben Clayton <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
SPIRV-Tools
contains the following SPIR-V instruction extension definition files:source/extinst.debuginfo.grammar.json
source/extinst.opencl.debuginfo.100.grammar.json
SPIR-V Tools
uses these to produce header files into an intermediate directory as part of the build. Projects that wish to make use of these will need to either fetch these out of the intermediate directory, or re-generate them itself (both approaches requiring custom build rules).It would be far more convenient if these headers were pre-built and were part of
SPIRV-Headers
, much likeGLSL.std.450.h
.The text was updated successfully, but these errors were encountered: