Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralan-baker <alanbaker@google.com>2020-07-30 19:08:53 +0300
committerGitHub <noreply@github.com>2020-07-30 19:08:53 +0300
commit50300450af880da63178ce077a91c8a2a0794a7d (patch)
tree07b389c3379c9abebf96a62f309242415e008dd4 /build_defs.bzl
parentab4fe12a46be66d56734f879a317f888ec0425bf (diff)
Validator support for non-semantic clspv reflection (#3618)
* Generate ext inst table for reflection * Change build to use grammar files from SPIRV-Headers instead of SPIRV-Tools * Add enum for clspv reflection extended instruction set * count it as non-semantic * validate clspv reflection extended instruction set * Remove local extended inst sets * update headers deps * Update nbuilds to use grammars from SPIRV-Headers instead of local duplicates
Diffstat (limited to 'build_defs.bzl')
-rw-r--r--build_defs.bzl6
1 files changed, 3 insertions, 3 deletions
diff --git a/build_defs.bzl b/build_defs.bzl
index 15b70c733..30af3bd60 100644
--- a/build_defs.bzl
+++ b/build_defs.bzl
@@ -39,8 +39,8 @@ TEST_COPTS = COMMON_COPTS + select({
],
})
-DEBUGINFO_GRAMMAR_JSON_FILE = "source/extinst.debuginfo.grammar.json"
-CLDEBUGINFO100_GRAMMAR_JSON_FILE = "source/extinst.opencl.debuginfo.100.grammar.json"
+DEBUGINFO_GRAMMAR_JSON_FILE = "@spirv_headers//:spirv_ext_inst_debuginfo_grammar_unified1"
+CLDEBUGINFO100_GRAMMAR_JSON_FILE = "@spirv_headers//:spirv_ext_inst_opencl_debuginfo_100_grammar_unified1"
def generate_core_tables(version = None):
if not version:
@@ -146,7 +146,7 @@ def generate_vendor_tables(extension, operand_kind_prefix = ""):
if not extension:
fail("Must specify extension", "extension")
extension_rule = extension.replace("-", "_").replace(".", "_")
- grammars = ["source/extinst.{}.grammar.json".format(extension)]
+ grammars = ["@spirv_headers//:spirv_ext_inst_{}_grammar_unified1".format(extension_rule)]
outs = ["{}.insts.inc".format(extension)]
prefices = [operand_kind_prefix]
fmtargs = grammars + outs + prefices