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
4bede9eb
Commit
4bede9eb
authored
Mar 26, 2018
by
GregF
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable DCE by Remapper through glslangValidator...
...now that spirv-opt is capable enough.
parent
643e57cd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
14 deletions
+1
-14
CMakeLists.txt
SPIRV/CMakeLists.txt
+1
-1
GlslangToSpv.cpp
SPIRV/GlslangToSpv.cpp
+0
-13
No files found.
SPIRV/CMakeLists.txt
View file @
4bede9eb
...
@@ -53,7 +53,7 @@ if(ENABLE_OPT)
...
@@ -53,7 +53,7 @@ if(ENABLE_OPT)
PRIVATE
${
spirv-tools_SOURCE_DIR
}
/include
PRIVATE
${
spirv-tools_SOURCE_DIR
}
/include
PRIVATE
${
spirv-tools_SOURCE_DIR
}
/source
PRIVATE
${
spirv-tools_SOURCE_DIR
}
/source
)
)
target_link_libraries
(
SPIRV glslang SPIRV-Tools-opt
SPVRemapper
)
target_link_libraries
(
SPIRV glslang SPIRV-Tools-opt
)
else
()
else
()
target_link_libraries
(
SPIRV glslang
)
target_link_libraries
(
SPIRV glslang
)
endif
(
ENABLE_OPT
)
endif
(
ENABLE_OPT
)
...
...
SPIRV/GlslangToSpv.cpp
View file @
4bede9eb
...
@@ -57,7 +57,6 @@ namespace spv {
...
@@ -57,7 +57,6 @@ namespace spv {
#ifdef ENABLE_OPT
#ifdef ENABLE_OPT
#include "spirv-tools/optimizer.hpp"
#include "spirv-tools/optimizer.hpp"
#include "message.h"
#include "message.h"
#include "SPVRemapper.h"
#endif
#endif
#ifdef ENABLE_OPT
#ifdef ENABLE_OPT
...
@@ -6701,12 +6700,6 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
...
@@ -6701,12 +6700,6 @@ void OutputSpvHex(const std::vector<unsigned int>& spirv, const char* baseName,
out
.
close
();
out
.
close
();
}
}
#ifdef ENABLE_OPT
void
errHandler
(
const
std
::
string
&
str
)
{
std
::
cerr
<<
str
<<
std
::
endl
;
}
#endif
//
//
// Set up the glslang traversal
// Set up the glslang traversal
//
//
...
@@ -6781,12 +6774,6 @@ void GlslangToSpv(const glslang::TIntermediate& intermediate, std::vector<unsign
...
@@ -6781,12 +6774,6 @@ void GlslangToSpv(const glslang::TIntermediate& intermediate, std::vector<unsign
if
(
!
optimizer
.
Run
(
spirv
.
data
(),
spirv
.
size
(),
&
spirv
))
if
(
!
optimizer
.
Run
(
spirv
.
data
(),
spirv
.
size
(),
&
spirv
))
return
;
return
;
// Remove dead module-level objects: functions, types, vars
// TODO(greg-lunarg): Switch to spirv-opt versions when available
spv
::
spirvbin_t
Remapper
(
0
);
Remapper
.
registerErrorHandler
(
errHandler
);
Remapper
.
remap
(
spirv
,
spv
::
spirvbin_t
::
DCE_ALL
);
}
}
#endif
#endif
...
...
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