SPIRV-Tools/test/val
Steven Perron 36d675a404
Change when instruction is registered in validator. (#1840)
When doing the validator checks, an instruction is currently registered
at the end of IdPass.  This creates an inconsistency.  In IdPass, an
instruction that uses its own result will treat that use as a forward
reference.  Then in the following passes it will not because the
definition can be found.

It seems best to update the state after all of the check have been done
for the current instruction.  This makes it consistent for all of the
passes.

This makes a different when trying to verify OpTypeStruct.

Fixes https://crbug.com/874372.
2018-08-15 13:18:47 -04:00
..
CMakeLists.txt Add a WIP WebGPU environment. It disallows OpUndef 2018-06-21 15:53:15 -04:00
val_adjacency_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_arithmetics_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_atomics_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_barriers_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_bitwise_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_builtins_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_capability_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_cfg_test.cpp Validate correct opcode uses of OpFunction 2018-08-14 10:13:06 -04:00
val_composites_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_conversion_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_data_test.cpp Change when instruction is registered in validator. (#1840) 2018-08-15 13:18:47 -04:00
val_decoration_test.cpp Fixing heap overflow in validation. 2018-08-13 15:23:30 -04:00
val_derivatives_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_explicit_reserved_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_ext_inst_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_extensions_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_fixtures.h Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_id_test.cpp Validate correct opcode uses of OpFunction 2018-08-14 10:13:06 -04:00
val_image_test.cpp Refactor where opcodes are validated 2018-08-07 10:29:30 -04:00
val_interfaces_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_layout_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_limits_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_literals_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_logicals_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_non_uniform_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_primitives_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_ssa_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_state_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_storage_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_type_unique_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_validation_state_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_version_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00
val_webgpu_test.cpp Cleanup includes. (#1795) 2018-08-03 15:06:09 -04:00