Avoid running the validator as part of the optimization pass.
authorPanagiotis Christopoulos Charitos <godlike@ancient-ritual.com>
Mon, 18 Mar 2019 10:34:17 +0000 (11:34 +0100)
committerPanagiotis Christopoulos Charitos <godlike@ancient-ritual.com>
Mon, 18 Mar 2019 10:34:17 +0000 (11:34 +0100)
commit35aeb042a2a72ad1cc9905b2b47513910b8b0d5a
treec7e7628382dfe0a376fd5c5027cbe83da24f9794
parentb184e41a063792881df531eebbaca591605bacde
Avoid running the validator as part of the optimization pass.

The spvtools::Optimizer::Run method glslang is using constructs a default set
of spvtools::OptimizerOptions. This default set of options instructs the
validator to run. That is not quite correct since glslang will invoke the
validator _explicitly_ after the optimization pass.

Change-Id: I30f458304c6e7f81e89fc4ebd25eabbbd8348063
SPIRV/SpvTools.cpp