Commit abc7a30a by Nicolas Capens Committed by Nicolas Capens

Fix ASTC support for GN build

Defines in BUILD.gn files don't apply transitively to dependencies, so we have to repeat the SWIFTSHADER_ENABLE_ASTC for the Device subdirectory. Note we could also use 'public_configs = [:swiftshader_libvulkan_private_config]' but this adds more defines and build flags than what we need. Since this is intended as a temporary workaround anyway, we're keeping it simple. Bug: b/150600814 Change-Id: Ib06f4a22559ee58114da5841e66e59bfce9aec4a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/41868Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com>
parent 176f3a3d
......@@ -72,6 +72,10 @@ swiftshader_source_set("Device") {
"../../third_party/SPIRV-Headers/include",
]
defines = [
"SWIFTSHADER_ENABLE_ASTC", # TODO(b/150130101)
]
deps = [
"../../third_party/marl:Marl_headers",
"../Pipeline:Pipeline_headers",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment