Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
fbe33812
Commit
fbe33812
authored
Sep 26, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'GitHub/master'
parents
f7a1a3e5
5ff3c3da
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
215 additions
and
26 deletions
+215
-26
BUILD.gn
BUILD.gn
+162
-0
SpvBuilder.cpp
SPIRV/SpvBuilder.cpp
+1
-1
SpvBuilder.h
SPIRV/SpvBuilder.h
+1
-5
ResourceLimits.cpp
StandAlone/ResourceLimits.cpp
+0
-2
glslang.gni
build_overrides/glslang.gni
+37
-0
ResourceLimits.h
glslang/Include/ResourceLimits.h
+0
-2
revision.h
glslang/Include/revision.h
+1
-1
Intermediate.cpp
glslang/MachineIndependent/Intermediate.cpp
+8
-6
ParseHelper.cpp
glslang/MachineIndependent/ParseHelper.cpp
+2
-0
ParseHelper.h
glslang/MachineIndependent/ParseHelper.h
+1
-4
ShaderLang.cpp
glslang/MachineIndependent/ShaderLang.cpp
+1
-0
ShaderLang.h
glslang/Public/ShaderLang.h
+0
-4
known_good.json
known_good.json
+1
-1
No files found.
BUILD.gn
0 → 100644
View file @
fbe33812
# Copyright (C) 2018 Google, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
import("//build_overrides/glslang.gni")
spirv_tools_dir = glslang_spirv_tools_dir
config("glslang_public") {
include_dirs = [ "." ]
}
source_set("glslang_sources") {
sources = [
"OGLCompilersDLL/InitializeDll.cpp",
"OGLCompilersDLL/InitializeDll.h",
"SPIRV/GLSL.ext.EXT.h",
"SPIRV/GLSL.ext.KHR.h",
"SPIRV/GLSL.std.450.h",
"SPIRV/GlslangToSpv.cpp",
"SPIRV/GlslangToSpv.h",
"SPIRV/InReadableOrder.cpp",
"SPIRV/Logger.cpp",
"SPIRV/Logger.h",
"SPIRV/SPVRemapper.cpp",
"SPIRV/SPVRemapper.h",
"SPIRV/SpvBuilder.cpp",
"SPIRV/SpvBuilder.h",
"SPIRV/bitutils.h",
"SPIRV/disassemble.cpp",
"SPIRV/disassemble.h",
"SPIRV/doc.cpp",
"SPIRV/doc.h",
"SPIRV/hex_float.h",
"SPIRV/spirv.hpp",
"SPIRV/spvIR.h",
"glslang/GenericCodeGen/CodeGen.cpp",
"glslang/GenericCodeGen/Link.cpp",
"glslang/Include/BaseTypes.h",
"glslang/Include/Common.h",
"glslang/Include/ConstantUnion.h",
"glslang/Include/InfoSink.h",
"glslang/Include/InitializeGlobals.h",
"glslang/Include/PoolAlloc.h",
"glslang/Include/ResourceLimits.h",
"glslang/Include/ShHandle.h",
"glslang/Include/Types.h",
"glslang/Include/arrays.h",
"glslang/Include/intermediate.h",
"glslang/Include/revision.h",
"glslang/MachineIndependent/Constant.cpp",
"glslang/MachineIndependent/InfoSink.cpp",
"glslang/MachineIndependent/Initialize.cpp",
"glslang/MachineIndependent/Initialize.h",
"glslang/MachineIndependent/IntermTraverse.cpp",
"glslang/MachineIndependent/Intermediate.cpp",
"glslang/MachineIndependent/LiveTraverser.h",
"glslang/MachineIndependent/ParseContextBase.cpp",
"glslang/MachineIndependent/ParseHelper.cpp",
"glslang/MachineIndependent/ParseHelper.h",
"glslang/MachineIndependent/PoolAlloc.cpp",
"glslang/MachineIndependent/RemoveTree.cpp",
"glslang/MachineIndependent/RemoveTree.h",
"glslang/MachineIndependent/Scan.cpp",
"glslang/MachineIndependent/Scan.h",
"glslang/MachineIndependent/ScanContext.h",
"glslang/MachineIndependent/ShaderLang.cpp",
"glslang/MachineIndependent/SymbolTable.cpp",
"glslang/MachineIndependent/SymbolTable.h",
"glslang/MachineIndependent/Versions.cpp",
"glslang/MachineIndependent/Versions.h",
"glslang/MachineIndependent/attribute.cpp",
"glslang/MachineIndependent/attribute.h",
"glslang/MachineIndependent/gl_types.h",
"glslang/MachineIndependent/glslang.y",
"glslang/MachineIndependent/glslang_tab.cpp",
"glslang/MachineIndependent/glslang_tab.cpp.h",
"glslang/MachineIndependent/intermOut.cpp",
"glslang/MachineIndependent/iomapper.cpp",
"glslang/MachineIndependent/iomapper.h",
"glslang/MachineIndependent/limits.cpp",
"glslang/MachineIndependent/linkValidate.cpp",
"glslang/MachineIndependent/localintermediate.h",
"glslang/MachineIndependent/parseConst.cpp",
"glslang/MachineIndependent/parseVersions.h",
"glslang/MachineIndependent/preprocessor/Pp.cpp",
"glslang/MachineIndependent/preprocessor/PpAtom.cpp",
"glslang/MachineIndependent/preprocessor/PpContext.cpp",
"glslang/MachineIndependent/preprocessor/PpContext.h",
"glslang/MachineIndependent/preprocessor/PpScanner.cpp",
"glslang/MachineIndependent/preprocessor/PpTokens.cpp",
"glslang/MachineIndependent/preprocessor/PpTokens.h",
"glslang/MachineIndependent/propagateNoContraction.cpp",
"glslang/MachineIndependent/propagateNoContraction.h",
"glslang/MachineIndependent/reflection.cpp",
"glslang/MachineIndependent/reflection.h",
"glslang/OSDependent/osinclude.h",
"glslang/Public/ShaderLang.h",
]
defines = []
if (is_win) {
sources += [ "glslang/OSDependent/Windows/ossource.cpp" ]
defines += [ "GLSLANG_OSINCLUDE_WIN32" ]
} else {
sources += [ "glslang/OSDependent/Unix/ossource.cpp" ]
defines += [ "GLSLANG_OSINCLUDE_UNIX" ]
}
if (is_clang) {
cflags_cc = [
"-Wno-implicit-fallthrough",
"-Wno-ignored-qualifiers",
"-Wno-unused-variable",
]
}
deps = [
"${spirv_tools_dir}:spvtools_opt",
]
}
static_library("glslang_static") {
public_configs = [ ":glslang_public" ]
deps = [
":glslang_sources",
]
configs -= [ "//build/config/compiler:chromium_code" ]
configs += [ "//build/config/compiler:no_chromium_code" ]
}
SPIRV/SpvBuilder.cpp
View file @
fbe33812
...
@@ -631,7 +631,7 @@ Id Builder::getContainedTypeId(Id typeId) const
...
@@ -631,7 +631,7 @@ Id Builder::getContainedTypeId(Id typeId) const
// Returns true if 'typeId' is or contains a scalar type declared with 'typeOp'
// Returns true if 'typeId' is or contains a scalar type declared with 'typeOp'
// of width 'width'. The 'width' is only consumed for int and float types.
// of width 'width'. The 'width' is only consumed for int and float types.
// Returns false otherwise.
// Returns false otherwise.
bool
Builder
::
containsType
(
Id
typeId
,
spv
::
Op
typeOp
,
int
width
)
const
bool
Builder
::
containsType
(
Id
typeId
,
spv
::
Op
typeOp
,
unsigned
int
width
)
const
{
{
const
Instruction
&
instr
=
*
module
.
getInstruction
(
typeId
);
const
Instruction
&
instr
=
*
module
.
getInstruction
(
typeId
);
...
...
SPIRV/SpvBuilder.h
View file @
fbe33812
...
@@ -131,10 +131,8 @@ public:
...
@@ -131,10 +131,8 @@ public:
Id
makeSamplerType
();
Id
makeSamplerType
();
Id
makeSampledImageType
(
Id
imageType
);
Id
makeSampledImageType
(
Id
imageType
);
#ifdef NV_EXTENSIONS
// accelerationStructureNV type
// accelerationStructureNV type
Id
makeAccelerationStructureNVType
();
Id
makeAccelerationStructureNVType
();
#endif
// For querying about types.
// For querying about types.
Id
getTypeId
(
Id
resultId
)
const
{
return
module
.
getTypeId
(
resultId
);
}
Id
getTypeId
(
Id
resultId
)
const
{
return
module
.
getTypeId
(
resultId
);
}
...
@@ -172,7 +170,7 @@ public:
...
@@ -172,7 +170,7 @@ public:
bool
isImageType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeImage
;
}
bool
isImageType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeImage
;
}
bool
isSamplerType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeSampler
;
}
bool
isSamplerType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeSampler
;
}
bool
isSampledImageType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeSampledImage
;
}
bool
isSampledImageType
(
Id
typeId
)
const
{
return
getTypeClass
(
typeId
)
==
OpTypeSampledImage
;
}
bool
containsType
(
Id
typeId
,
Op
typeOp
,
int
width
)
const
;
bool
containsType
(
Id
typeId
,
Op
typeOp
,
unsigned
int
width
)
const
;
bool
isConstantOpCode
(
Op
opcode
)
const
;
bool
isConstantOpCode
(
Op
opcode
)
const
;
bool
isSpecConstantOpCode
(
Op
opcode
)
const
;
bool
isSpecConstantOpCode
(
Op
opcode
)
const
;
...
@@ -371,10 +369,8 @@ public:
...
@@ -371,10 +369,8 @@ public:
Id
component
;
Id
component
;
Id
texelOut
;
Id
texelOut
;
Id
lodClamp
;
Id
lodClamp
;
#ifdef NV_EXTENSIONS
Id
granularity
;
Id
granularity
;
Id
coarse
;
Id
coarse
;
#endif
bool
nonprivate
;
bool
nonprivate
;
bool
volatil
;
bool
volatil
;
};
};
...
...
StandAlone/ResourceLimits.cpp
View file @
fbe33812
...
@@ -125,7 +125,6 @@ const TBuiltInResource DefaultTBuiltInResource = {
...
@@ -125,7 +125,6 @@ const TBuiltInResource DefaultTBuiltInResource = {
/* .MaxCullDistances = */
8
,
/* .MaxCullDistances = */
8
,
/* .MaxCombinedClipAndCullDistances = */
8
,
/* .MaxCombinedClipAndCullDistances = */
8
,
/* .MaxSamples = */
4
,
/* .MaxSamples = */
4
,
#ifdef NV_EXTENSIONS
/* .maxMeshOutputVerticesNV = */
256
,
/* .maxMeshOutputVerticesNV = */
256
,
/* .maxMeshOutputPrimitivesNV = */
512
,
/* .maxMeshOutputPrimitivesNV = */
512
,
/* .maxMeshWorkGroupSizeX_NV = */
32
,
/* .maxMeshWorkGroupSizeX_NV = */
32
,
...
@@ -135,7 +134,6 @@ const TBuiltInResource DefaultTBuiltInResource = {
...
@@ -135,7 +134,6 @@ const TBuiltInResource DefaultTBuiltInResource = {
/* .maxTaskWorkGroupSizeY_NV = */
1
,
/* .maxTaskWorkGroupSizeY_NV = */
1
,
/* .maxTaskWorkGroupSizeZ_NV = */
1
,
/* .maxTaskWorkGroupSizeZ_NV = */
1
,
/* .maxMeshViewCountNV = */
4
,
/* .maxMeshViewCountNV = */
4
,
#endif
/* .limits = */
{
/* .limits = */
{
/* .nonInductiveForLoops = */
1
,
/* .nonInductiveForLoops = */
1
,
...
...
build_overrides/glslang.gni
0 → 100644
View file @
fbe33812
# Copyright (C) 2018 Google, Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above
# copyright notice, this list of conditions and the following
# disclaimer in the documentation and/or other materials provided
# with the distribution.
#
# Neither the name of Google Inc. nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
# COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.
# These are variables that are overridable by projects that include glslang.
# The path to glslang dependencies.
glslang_spirv_tools_dir = "//Externals/spirv-tools"
glslang/Include/ResourceLimits.h
View file @
fbe33812
...
@@ -133,7 +133,6 @@ struct TBuiltInResource {
...
@@ -133,7 +133,6 @@ struct TBuiltInResource {
int
maxCullDistances
;
int
maxCullDistances
;
int
maxCombinedClipAndCullDistances
;
int
maxCombinedClipAndCullDistances
;
int
maxSamples
;
int
maxSamples
;
#ifdef NV_EXTENSIONS
int
maxMeshOutputVerticesNV
;
int
maxMeshOutputVerticesNV
;
int
maxMeshOutputPrimitivesNV
;
int
maxMeshOutputPrimitivesNV
;
int
maxMeshWorkGroupSizeX_NV
;
int
maxMeshWorkGroupSizeX_NV
;
...
@@ -143,7 +142,6 @@ struct TBuiltInResource {
...
@@ -143,7 +142,6 @@ struct TBuiltInResource {
int
maxTaskWorkGroupSizeY_NV
;
int
maxTaskWorkGroupSizeY_NV
;
int
maxTaskWorkGroupSizeZ_NV
;
int
maxTaskWorkGroupSizeZ_NV
;
int
maxMeshViewCountNV
;
int
maxMeshViewCountNV
;
#endif
TLimits
limits
;
TLimits
limits
;
};
};
...
...
glslang/Include/revision.h
View file @
fbe33812
// This header is generated by the make-revision script.
// This header is generated by the make-revision script.
#define GLSLANG_PATCH_LEVEL 290
3
#define GLSLANG_PATCH_LEVEL 290
4
glslang/MachineIndependent/Intermediate.cpp
View file @
fbe33812
...
@@ -1576,27 +1576,29 @@ bool TIntermediate::canImplicitlyPromote(TBasicType from, TBasicType to, TOperat
...
@@ -1576,27 +1576,29 @@ bool TIntermediate::canImplicitlyPromote(TBasicType from, TBasicType to, TOperat
return
false
;
return
false
;
}
}
case
EbtFloat16
:
case
EbtFloat16
:
switch
(
from
)
{
#ifdef AMD_EXTENSIONS
#ifdef AMD_EXTENSIONS
switch
(
from
)
{
case
EbtInt16
:
case
EbtInt16
:
case
EbtUint16
:
case
EbtUint16
:
return
extensionRequested
(
E_GL_AMD_gpu_shader_int16
);
return
extensionRequested
(
E_GL_AMD_gpu_shader_int16
);
case
EbtFloat16
:
case
EbtFloat16
:
return
extensionRequested
(
E_GL_AMD_gpu_shader_half_float
);
return
extensionRequested
(
E_GL_AMD_gpu_shader_half_float
);
#endif
default
:
default
:
return
false
;
break
;
}
}
#endif
return
false
;
case
EbtUint16
:
case
EbtUint16
:
switch
(
from
)
{
#ifdef AMD_EXTENSIONS
#ifdef AMD_EXTENSIONS
switch
(
from
)
{
case
EbtInt16
:
case
EbtInt16
:
case
EbtUint16
:
case
EbtUint16
:
return
extensionRequested
(
E_GL_AMD_gpu_shader_int16
);
return
extensionRequested
(
E_GL_AMD_gpu_shader_int16
);
#endif
default
:
default
:
return
false
;
break
;
}
}
#endif
return
false
;
default
:
default
:
return
false
;
return
false
;
}
}
...
...
glslang/MachineIndependent/ParseHelper.cpp
View file @
fbe33812
...
@@ -1560,6 +1560,8 @@ void TParseContext::memorySemanticsCheck(const TSourceLoc& loc, const TFunction&
...
@@ -1560,6 +1560,8 @@ void TParseContext::memorySemanticsCheck(const TSourceLoc& loc, const TFunction&
storageClassSemantics
=
(
*
argp
)[
1
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
].
getIConst
();
storageClassSemantics
=
(
*
argp
)[
1
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
].
getIConst
();
semantics
=
(
*
argp
)[
2
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
].
getIConst
();
semantics
=
(
*
argp
)[
2
]
->
getAsConstantUnion
()
->
getConstArray
()[
0
].
getIConst
();
break
;
break
;
default
:
break
;
}
}
if
((
semantics
&
gl_SemanticsAcquire
)
&&
if
((
semantics
&
gl_SemanticsAcquire
)
&&
...
...
glslang/MachineIndependent/ParseHelper.h
View file @
fbe33812
...
@@ -348,9 +348,7 @@ public:
...
@@ -348,9 +348,7 @@ public:
void
boolCheck
(
const
TSourceLoc
&
,
const
TPublicType
&
);
void
boolCheck
(
const
TSourceLoc
&
,
const
TPublicType
&
);
void
samplerCheck
(
const
TSourceLoc
&
,
const
TType
&
,
const
TString
&
identifier
,
TIntermTyped
*
initializer
);
void
samplerCheck
(
const
TSourceLoc
&
,
const
TType
&
,
const
TString
&
identifier
,
TIntermTyped
*
initializer
);
void
atomicUintCheck
(
const
TSourceLoc
&
,
const
TType
&
,
const
TString
&
identifier
);
void
atomicUintCheck
(
const
TSourceLoc
&
,
const
TType
&
,
const
TString
&
identifier
);
#ifdef NV_EXTENSIONS
void
accStructNVCheck
(
const
TSourceLoc
&
loc
,
const
TType
&
type
,
const
TString
&
identifier
);
void
accStructNVCheck
(
const
TSourceLoc
&
loc
,
const
TType
&
type
,
const
TString
&
identifier
);
#endif
void
transparentOpaqueCheck
(
const
TSourceLoc
&
,
const
TType
&
,
const
TString
&
identifier
);
void
transparentOpaqueCheck
(
const
TSourceLoc
&
,
const
TType
&
,
const
TString
&
identifier
);
void
memberQualifierCheck
(
glslang
::
TPublicType
&
);
void
memberQualifierCheck
(
glslang
::
TPublicType
&
);
void
globalQualifierFixCheck
(
const
TSourceLoc
&
,
TQualifier
&
);
void
globalQualifierFixCheck
(
const
TSourceLoc
&
,
TQualifier
&
);
...
@@ -426,9 +424,8 @@ public:
...
@@ -426,9 +424,8 @@ public:
// Determine loop control from attributes
// Determine loop control from attributes
void
handleLoopAttributes
(
const
TAttributes
&
attributes
,
TIntermNode
*
);
void
handleLoopAttributes
(
const
TAttributes
&
attributes
,
TIntermNode
*
);
#ifdef NV_EXTENSIONS
void
resizeMeshViewDimension
(
const
TSourceLoc
&
,
TType
&
);
void
resizeMeshViewDimension
(
const
TSourceLoc
&
,
TType
&
);
#endif
protected
:
protected
:
void
nonInitConstCheck
(
const
TSourceLoc
&
,
TString
&
identifier
,
TType
&
type
);
void
nonInitConstCheck
(
const
TSourceLoc
&
,
TString
&
identifier
,
TType
&
type
);
void
inheritGlobalDefaults
(
TQualifier
&
dst
)
const
;
void
inheritGlobalDefaults
(
TQualifier
&
dst
)
const
;
...
...
glslang/MachineIndependent/ShaderLang.cpp
View file @
fbe33812
...
@@ -600,6 +600,7 @@ bool DeduceVersionProfile(TInfoSink& infoSink, EShLanguage stage, bool versionNo
...
@@ -600,6 +600,7 @@ bool DeduceVersionProfile(TInfoSink& infoSink, EShLanguage stage, bool versionNo
case
EShLangIntersectNV
:
case
EShLangIntersectNV
:
case
EShLangAnyHitNV
:
case
EShLangAnyHitNV
:
case
EShLangClosestHitNV
:
case
EShLangClosestHitNV
:
case
EShLangMissNV
:
case
EShLangCallableNV
:
case
EShLangCallableNV
:
if
(
profile
==
EEsProfile
||
version
<
460
)
{
if
(
profile
==
EEsProfile
||
version
<
460
)
{
correct
=
false
;
correct
=
false
;
...
...
glslang/Public/ShaderLang.h
100755 → 100644
View file @
fbe33812
...
@@ -94,7 +94,6 @@ typedef enum {
...
@@ -94,7 +94,6 @@ typedef enum {
EShLangGeometry
,
EShLangGeometry
,
EShLangFragment
,
EShLangFragment
,
EShLangCompute
,
EShLangCompute
,
#ifdef NV_EXTENSIONS
EShLangRayGenNV
,
EShLangRayGenNV
,
EShLangIntersectNV
,
EShLangIntersectNV
,
EShLangAnyHitNV
,
EShLangAnyHitNV
,
...
@@ -103,7 +102,6 @@ typedef enum {
...
@@ -103,7 +102,6 @@ typedef enum {
EShLangCallableNV
,
EShLangCallableNV
,
EShLangTaskNV
,
EShLangTaskNV
,
EShLangMeshNV
,
EShLangMeshNV
,
#endif
EShLangCount
,
EShLangCount
,
}
EShLanguage
;
// would be better as stage, but this is ancient now
}
EShLanguage
;
// would be better as stage, but this is ancient now
...
@@ -114,7 +112,6 @@ typedef enum {
...
@@ -114,7 +112,6 @@ typedef enum {
EShLangGeometryMask
=
(
1
<<
EShLangGeometry
),
EShLangGeometryMask
=
(
1
<<
EShLangGeometry
),
EShLangFragmentMask
=
(
1
<<
EShLangFragment
),
EShLangFragmentMask
=
(
1
<<
EShLangFragment
),
EShLangComputeMask
=
(
1
<<
EShLangCompute
),
EShLangComputeMask
=
(
1
<<
EShLangCompute
),
#ifdef NV_EXTENSIONS
EShLangRayGenNVMask
=
(
1
<<
EShLangRayGenNV
),
EShLangRayGenNVMask
=
(
1
<<
EShLangRayGenNV
),
EShLangIntersectNVMask
=
(
1
<<
EShLangIntersectNV
),
EShLangIntersectNVMask
=
(
1
<<
EShLangIntersectNV
),
EShLangAnyHitNVMask
=
(
1
<<
EShLangAnyHitNV
),
EShLangAnyHitNVMask
=
(
1
<<
EShLangAnyHitNV
),
...
@@ -123,7 +120,6 @@ typedef enum {
...
@@ -123,7 +120,6 @@ typedef enum {
EShLangCallableNVMask
=
(
1
<<
EShLangCallableNV
),
EShLangCallableNVMask
=
(
1
<<
EShLangCallableNV
),
EShLangTaskNVMask
=
(
1
<<
EShLangTaskNV
),
EShLangTaskNVMask
=
(
1
<<
EShLangTaskNV
),
EShLangMeshNVMask
=
(
1
<<
EShLangMeshNV
),
EShLangMeshNVMask
=
(
1
<<
EShLangMeshNV
),
#endif
}
EShLanguageMask
;
}
EShLanguageMask
;
namespace
glslang
{
namespace
glslang
{
...
...
known_good.json
View file @
fbe33812
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
"site"
:
"github"
,
"site"
:
"github"
,
"subrepo"
:
"KhronosGroup/SPIRV-Tools"
,
"subrepo"
:
"KhronosGroup/SPIRV-Tools"
,
"subdir"
:
"External/spirv-tools"
,
"subdir"
:
"External/spirv-tools"
,
"commit"
:
"
6e2dab2ffd46a5cf62e2edd3908b4351eaf193d
1"
"commit"
:
"
9bfe0eb25e3dfdf4f3fd86ab6c0cda009c9bd66
1"
},
},
{
{
"name"
:
"spirv-tools/external/spirv-headers"
,
"name"
:
"spirv-tools/external/spirv-headers"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment