David Neto
9fc8658ef3
Relicense SPIRV-Tools under Apache 2.0
...
Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/383
Finalize v2016.4
2016-09-02 10:00:29 -04:00
Andrew Woloszyn
4c657bfa8f
Make everything compile cleanly with -Wpedantic.
...
This makes SPIRV_WARN_EVERYTHING compile cleanly.
2016-03-21 10:01:13 -04:00
David Neto
1d9a876f95
Test OpImageSparseRead
...
Also tweak the image operands test with OpImageFetch so the input assembly
more closely matches the expected output. But don't make it a round
trip test since we want to check the assembler's ability to read the
image operand mask with out-of-order mask names.
The OpImageSparseRead assembly test is also a round trip disassembler
test.
2016-02-17 13:32:37 -05:00
Dejan Mircevski
b6fe02fc39
Extend copyright to 2016.
2016-01-07 13:44:22 -05:00
David Neto
0c6cf8cdff
Support OpImage
...
It's already in the syntax table. Just test it.
2015-11-12 16:27:51 -05:00
Lei Zhang
b36e704a47
Use spirv.h instead of spirv.hpp.
...
This is a part of the effort to make libspirv.h C-compatible.
2015-11-02 13:52:20 -05:00
Dejan Mircevski
d062f8b097
Make compilation input strings const.
...
Also rerun clang-format.
2015-10-26 12:55:33 -04:00
Dejan Mircevski
63af6fd409
Negative test for ImageOperands.
2015-10-26 12:55:33 -04:00
David Neto
0cd7352d7d
Use 3-arg MakeInstruction to reduce logic in tests
...
Avoids open-coded vector inserts and two variables in various
tests. Should improve readability.
2015-10-26 12:55:33 -04:00
David Neto
6b31ce4d50
Assembler test TODOs for image instructions.
2015-10-26 12:55:33 -04:00
David Neto
8576c9c327
Support Image operand MinLod
2015-10-26 12:55:33 -04:00
Andrew Woloszyn
13804e5d63
All values now represent symbolic names instead of mixed with numeric.
...
Also removed un-necessary heap-allocation of spv_named_id_table.
This removed the necessity to expose a function to create/destroy it
and simplified the interface.
2015-10-26 12:55:33 -04:00
David Neto
1b5fd4962e
Put the test fixture into spvtest namespace.
...
All test utility code should go into the spvtest namespace.
2015-10-26 12:55:33 -04:00
Andrew Woloszyn
815cb95247
Fix MSVC build for boolean opeartions on enums.
2015-10-26 12:55:33 -04:00
David Neto
ee1b3bb3bb
Assembler support for image operands from Rev31
...
Rev32 and later add many more image operands, and
rearrange their values.
2015-10-26 12:55:33 -04:00