Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swiftshader
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
swiftshader
Commits
eaf1c535
Commit
eaf1c535
authored
Nov 02, 2020
by
Alexis Hétu
Browse files
Options
Browse Files
Download
Plain Diff
Merge changes If776b87d,I27098964
* changes: Update SPIR-V Tools to f7da52775 Squashed 'third_party/SPIRV-Tools/' changes from 82b378d671..f7da527757
parents
00ecdf94
6dda9eee
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
59 additions
and
0 deletions
+59
-0
BUILD.gn
third_party/SPIRV-Tools/BUILD.gn
+1
-0
optimizer.hpp
third_party/SPIRV-Tools/include/spirv-tools/optimizer.hpp
+12
-0
CMakeLists.txt
third_party/SPIRV-Tools/source/opt/CMakeLists.txt
+1
-0
empty_pass.h
third_party/SPIRV-Tools/source/opt/empty_pass.h
+36
-0
optimizer.cpp
third_party/SPIRV-Tools/source/opt/optimizer.cpp
+8
-0
passes.h
third_party/SPIRV-Tools/source/opt/passes.h
+1
-0
No files found.
third_party/SPIRV-Tools/BUILD.gn
View file @
eaf1c535
...
...
@@ -561,6 +561,7 @@ static_library("spvtools_opt") {
"source/opt/eliminate_dead_functions_util.h",
"source/opt/eliminate_dead_members_pass.cpp",
"source/opt/eliminate_dead_members_pass.h",
"source/opt/empty_pass.h",
"source/opt/feature_manager.cpp",
"source/opt/feature_manager.h",
"source/opt/fix_storage_class.cpp",
...
...
third_party/SPIRV-Tools/include/spirv-tools/optimizer.hpp
View file @
eaf1c535
...
...
@@ -536,6 +536,18 @@ Optimizer::PassToken CreateDeadInsertElimPass();
// eliminated with standard dead code elimination.
Optimizer
::
PassToken
CreateAggressiveDCEPass
();
// Creates an empty pass.
// This is deprecated and will be removed.
// TODO(jaebaek): remove this pass after handling glslang's broken unit tests.
// https://github.com/KhronosGroup/glslang/pull/2440
Optimizer
::
PassToken
CreatePropagateLineInfoPass
();
// Creates an empty pass.
// This is deprecated and will be removed.
// TODO(jaebaek): remove this pass after handling glslang's broken unit tests.
// https://github.com/KhronosGroup/glslang/pull/2440
Optimizer
::
PassToken
CreateRedundantLineInfoElimPass
();
// Creates a compact ids pass.
// The pass remaps result ids to a compact and gapless range starting from %1.
Optimizer
::
PassToken
CreateCompactIdsPass
();
...
...
third_party/SPIRV-Tools/source/opt/CMakeLists.txt
View file @
eaf1c535
...
...
@@ -43,6 +43,7 @@ set(SPIRV_TOOLS_OPT_SOURCES
eliminate_dead_functions_pass.h
eliminate_dead_functions_util.h
eliminate_dead_members_pass.h
empty_pass.h
feature_manager.h
fix_storage_class.h
flatten_decoration_pass.h
...
...
third_party/SPIRV-Tools/source/opt/empty_pass.h
0 → 100644
View file @
eaf1c535
// Copyright (c) 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef SOURCE_OPT_EMPTY_PASS_H_
#define SOURCE_OPT_EMPTY_PASS_H_
#include "source/opt/pass.h"
namespace
spvtools
{
namespace
opt
{
// Documented in optimizer.hpp
class
EmptyPass
:
public
Pass
{
public
:
EmptyPass
()
{}
const
char
*
name
()
const
override
{
return
"empty-pass"
;
}
Status
Process
()
override
{
return
Status
::
SuccessWithoutChange
;
}
};
}
// namespace opt
}
// namespace spvtools
#endif // SOURCE_OPT_EMPTY_PASS_H_
third_party/SPIRV-Tools/source/opt/optimizer.cpp
View file @
eaf1c535
...
...
@@ -753,6 +753,14 @@ Optimizer::PassToken CreateAggressiveDCEPass() {
MakeUnique
<
opt
::
AggressiveDCEPass
>
());
}
Optimizer
::
PassToken
CreatePropagateLineInfoPass
()
{
return
MakeUnique
<
Optimizer
::
PassToken
::
Impl
>
(
MakeUnique
<
opt
::
EmptyPass
>
());
}
Optimizer
::
PassToken
CreateRedundantLineInfoElimPass
()
{
return
MakeUnique
<
Optimizer
::
PassToken
::
Impl
>
(
MakeUnique
<
opt
::
EmptyPass
>
());
}
Optimizer
::
PassToken
CreateCompactIdsPass
()
{
return
MakeUnique
<
Optimizer
::
PassToken
::
Impl
>
(
MakeUnique
<
opt
::
CompactIdsPass
>
());
...
...
third_party/SPIRV-Tools/source/opt/passes.h
View file @
eaf1c535
...
...
@@ -35,6 +35,7 @@
#include "source/opt/eliminate_dead_constant_pass.h"
#include "source/opt/eliminate_dead_functions_pass.h"
#include "source/opt/eliminate_dead_members_pass.h"
#include "source/opt/empty_pass.h"
#include "source/opt/fix_storage_class.h"
#include "source/opt/flatten_decoration_pass.h"
#include "source/opt/fold_spec_constant_op_and_composite_pass.h"
...
...
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