Skip to content

Commit

Permalink
Update to Glslang generator version 7
Browse files Browse the repository at this point in the history
  • Loading branch information
dneto0 committed Jun 11, 2018
1 parent be8e087 commit f7efa14
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion glslc/test/assembly.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def assembly_comments():
return """
; SPIR-V
; Version: 1.0
; Generator: Google Shaderc over Glslang; 6
; Generator: Google Shaderc over Glslang; 7
; Bound: 6
; Schema: 0"""

Expand Down
2 changes: 1 addition & 1 deletion glslc/test/expect.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def check_endianness(binary):
return False, 'Incorrect SPV binary: wrong version number'
# Shaderc-over-Glslang (0x000d....) or
# SPIRV-Tools (0x0007....) generator number
if read_word(preamble, 2, little_endian) != 0x000d0006 and \
if read_word(preamble, 2, little_endian) != 0x000d0007 and \
read_word(preamble, 2, little_endian) != 0x00070000:
return False, ('Incorrect SPV binary: wrong generator magic '
'number')
Expand Down
4 changes: 2 additions & 2 deletions glslc/test/option_dash_cap_O.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ASSEMBLY_WITH_DEBUG = [
'; SPIR-V\n',
'; Version: 1.0\n',
'; Generator: Google Shaderc over Glslang; 6\n',
'; Generator: Google Shaderc over Glslang; 7\n',
'; Bound: 6\n',
'; Schema: 0\n',
' OpCapability Shader\n',
Expand All @@ -44,7 +44,7 @@
ASSEMBLY_WITHOUT_DEBUG = [
'; SPIR-V\n',
'; Version: 1.0\n',
'; Generator: Google Shaderc over Glslang; 6\n',
'; Generator: Google Shaderc over Glslang; 7\n',
'; Bound: 6\n',
'; Schema: 0\n',
' OpCapability Shader\n',
Expand Down
4 changes: 2 additions & 2 deletions libshaderc/src/common_shaders_for_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const char kVertexOnlyShaderWithInvalidPragma[] =
const char* kMinimalShaderDisassemblySubstrings[] = {
"; SPIR-V\n"
"; Version: 1.0\n"
"; Generator: Google Shaderc over Glslang; 6\n"
"; Generator: Google Shaderc over Glslang; 7\n"
"; Bound:",

" OpCapability Shader\n",
Expand All @@ -201,7 +201,7 @@ const char* kMinimalShaderDisassemblySubstrings[] = {
const char kMinimalShaderAssembly[] = R"(
; SPIR-V
; Version: 1.0
; Generator: Google Shaderc over Glslang; 6
; Generator: Google Shaderc over Glslang; 7
; Bound: 6
; Schema: 0

Expand Down

0 comments on commit f7efa14

Please sign in to comment.