Skip to content

Commit

Permalink
Remove unused outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardodoria committed Jan 18, 2024
1 parent b7c37e4 commit 69ea20f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/glslang.cc
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ void spirv_optimize(const glslang::TIntermediate& intermediate, std::vector<unsi
optimizer.RegisterPass(spvtools::CreateAggressiveDCEPass());
optimizer.RegisterPass(spvtools::CreateCFGCleanupPass());

optimizer.RegisterPass(spvtools::CreateAggressiveDCEPass(false, true));

spvtools::OptimizerOptions spvOptOptions;
optimizer.SetTargetEnv(MapToSpirvToolsEnv(intermediate.getSpv(), logger));
spvOptOptions.set_run_validator(false); // The validator may run as a separate step later on
Expand Down

0 comments on commit 69ea20f

Please sign in to comment.