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
fc7aeaee
Commit
fc7aeaee
authored
Sep 28, 2017
by
John Kessenich
Committed by
GitHub
Sep 28, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1077 from greg-lunarg/addopt12
Legalization: Fix warnings and disable tests when spirv-tools not present
parents
3ddcd3f1
52fe3d59
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
StandAlone.cpp
StandAlone/StandAlone.cpp
+2
-2
Hlsl.FromFile.cpp
gtests/Hlsl.FromFile.cpp
+2
-0
No files found.
StandAlone/StandAlone.cpp
View file @
fc7aeaee
...
@@ -896,8 +896,8 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
...
@@ -896,8 +896,8 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
glslang
::
SpvOptions
spvOptions
;
glslang
::
SpvOptions
spvOptions
;
if
(
Options
&
EOptionDebug
)
if
(
Options
&
EOptionDebug
)
spvOptions
.
generateDebugInfo
=
true
;
spvOptions
.
generateDebugInfo
=
true
;
spvOptions
.
disableOptimizer
=
Options
&
EOptionOptimizeDisable
;
spvOptions
.
disableOptimizer
=
(
Options
&
EOptionOptimizeDisable
)
!=
0
;
spvOptions
.
optimizeSize
=
Options
&
EOptionOptimizeSize
;
spvOptions
.
optimizeSize
=
(
Options
&
EOptionOptimizeSize
)
!=
0
;
glslang
::
GlslangToSpv
(
*
program
.
getIntermediate
((
EShLanguage
)
stage
),
spirv
,
&
logger
,
&
spvOptions
);
glslang
::
GlslangToSpv
(
*
program
.
getIntermediate
((
EShLanguage
)
stage
),
spirv
,
&
logger
,
&
spvOptions
);
// Dump the spv to a file or stdout, etc., but only if not doing
// Dump the spv to a file or stdout, etc., but only if not doing
...
...
gtests/Hlsl.FromFile.cpp
View file @
fc7aeaee
...
@@ -366,6 +366,7 @@ INSTANTIATE_TEST_CASE_P(
...
@@ -366,6 +366,7 @@ INSTANTIATE_TEST_CASE_P(
);
);
// clang-format on
// clang-format on
#ifdef ENABLE_OPT
// clang-format off
// clang-format off
INSTANTIATE_TEST_CASE_P
(
INSTANTIATE_TEST_CASE_P
(
ToSpirv
,
HlslLegalizeTest
,
ToSpirv
,
HlslLegalizeTest
,
...
@@ -378,6 +379,7 @@ INSTANTIATE_TEST_CASE_P(
...
@@ -378,6 +379,7 @@ INSTANTIATE_TEST_CASE_P(
FileNameAsCustomTestSuffix
FileNameAsCustomTestSuffix
);
);
// clang-format on
// clang-format on
#endif
}
// anonymous namespace
}
// anonymous namespace
}
// namespace glslangtest
}
// namespace glslangtest
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