SPIRV-Tools/source
David Neto afc60bbebf Fix optimizer on when to write the binary
The spvtools::Optimizer::Run method should also write the output binary
if optimization succeeds without changes but the output binary vector
does not have exactly the same contents as the input binary.
We have to check both the base pointer of the storage and the size of
the vector

Added a test for this too.

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/611
2017-04-03 15:48:50 -04:00
..
opt Fix optimizer on when to write the binary 2017-04-03 15:48:50 -04:00
util Validator checks if operands require extension 2017-03-14 13:39:43 -04:00
val Validator checks if operands require extension 2017-03-14 13:39:43 -04:00
assembly_grammar.cpp Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
assembly_grammar.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
binary.cpp Support building under CYGWIN 2016-12-21 10:34:23 -05:00
binary.h Support building under CYGWIN 2016-12-21 10:34:23 -05:00
CMakeLists.txt Fix spelling in SPV_AMD_gcn_shader support 2017-04-03 14:59:18 -04:00
diagnostic.cpp spirv-val prints warnings 2017-03-17 12:48:51 -04:00
diagnostic.h Clean up header dependency. 2016-09-22 18:15:23 -04:00
disassemble.cpp Extract EmitNumericLiteral from disassembler 2016-11-15 14:05:03 -05:00
enum_set.h Refactored enum_set 2017-03-10 13:38:32 -05:00
enum_string_mapping.cpp Autogenererating enum-string mappings from grammar 2017-03-16 15:29:17 -04:00
enum_string_mapping.h Autogenererating enum-string mappings from grammar 2017-03-16 15:29:17 -04:00
ext_inst.cpp Fix spelling in SPV_AMD_gcn_shader support 2017-04-03 14:59:18 -04:00
ext_inst.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
extensions.cpp Autogenererating enum-string mappings from grammar 2017-03-16 15:29:17 -04:00
extensions.h Autogenererating enum-string mappings from grammar 2017-03-16 15:29:17 -04:00
extinst.spv-amd-gcn-shader.grammar.json Fix spelling in SPV_AMD_gcn_shader support 2017-04-03 14:59:18 -04:00
instruction.h Remove source/instruction.cpp 2016-11-03 11:40:52 -04:00
libspirv.cpp Add SpirvTools::Validate that takes an options object 2017-03-17 12:48:51 -04:00
macro.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
message.cpp spirv-val prints warnings 2017-03-17 12:48:51 -04:00
message.h Clean up header dependency. 2016-09-22 18:15:23 -04:00
name_mapper.cpp Provide friendly names for true and false 2017-01-11 16:33:45 -05:00
name_mapper.h Make friendly number-based names for OpConstant 2016-11-15 14:05:03 -05:00
opcode.cpp Validate that SpecId decoration target is a OpSpecConstant instruction 2017-03-07 09:51:16 -05:00
opcode.h Validate that SpecId decoration target is a OpSpecConstant instruction 2017-03-07 09:51:16 -05:00
operand.cpp Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
operand.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
parsed_operand.cpp Extract EmitNumericLiteral from disassembler 2016-11-15 14:05:03 -05:00
parsed_operand.h Extract EmitNumericLiteral from disassembler 2016-11-15 14:05:03 -05:00
print.cpp Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
print.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
software_version.cpp Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
spirv_constant.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
spirv_definition.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
spirv_endian.cpp Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
spirv_endian.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
spirv_target_env.cpp Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
spirv_target_env.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
spirv_validator_options.cpp Add command line options struct for the validator 2017-02-28 12:00:06 -05:00
spirv_validator_options.h Add command line options struct for the validator 2017-02-28 12:00:06 -05:00
table.cpp Clean up header dependency. 2016-09-22 18:15:23 -04:00
table.h Validator checks if operands require extension 2017-03-14 13:39:43 -04:00
text_handler.cpp Pull out the number parsing logic 2016-09-08 18:42:54 -04:00
text_handler.h Add a callback mechanism for communicating messages to callers. 2016-09-15 12:35:48 -04:00
text.cpp Add a callback mechanism for communicating messages to callers. 2016-09-15 12:35:48 -04:00
text.h Relicense SPIRV-Tools under Apache 2.0 2016-09-02 10:00:29 -04:00
validate_capability.cpp Validator dissallows unsupported Vulkan capability 2017-03-17 10:28:35 -04:00
validate_cfg.cpp Add command line options struct for the validator 2017-02-28 12:00:06 -05:00
validate_datarules.cpp Validation of type decls for SPV_KHR_16bit_storage 2017-02-27 13:12:59 -05:00
validate_decorations.cpp Fixes issue #489. 2017-03-02 10:06:29 -05:00
validate_id.cpp Fix validator message for bad logical pointer 2017-03-23 15:50:45 -04:00
validate_instruction.cpp Autogenererating enum-string mappings from grammar 2017-03-16 15:29:17 -04:00
validate_layout.cpp Rename validation source files to comply with Google style guide. 2016-11-08 17:19:56 -08:00
validate_type_unique.cpp Validator: unique type check allows runtime arrays 2017-03-02 17:24:29 -05:00
validate.cpp Validator dissallows unsupported Vulkan capability 2017-03-17 10:28:35 -04:00
validate.h Validator dissallows unsupported Vulkan capability 2017-03-17 10:28:35 -04:00