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
5ff3c3da
Commit
5ff3c3da
authored
Sep 26, 2018
by
John Kessenich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Interfaces: Remove NV_EXTENSIONS from two more headers.
This also fixes some cpp files that uncover issues when building with the flags turned off.
parent
01c4076a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
18 deletions
+11
-18
SpvBuilder.h
SPIRV/SpvBuilder.h
+0
-4
ResourceLimits.cpp
StandAlone/ResourceLimits.cpp
+0
-2
Intermediate.cpp
glslang/MachineIndependent/Intermediate.cpp
+10
-8
ParseHelper.h
glslang/MachineIndependent/ParseHelper.h
+1
-4
No files found.
SPIRV/SpvBuilder.h
View file @
5ff3c3da
...
@@ -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
);
}
...
@@ -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 @
5ff3c3da
...
@@ -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
,
...
...
glslang/MachineIndependent/Intermediate.cpp
View file @
5ff3c3da
...
@@ -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.h
View file @
5ff3c3da
...
@@ -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
;
...
...
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