Lei Zhang
977e9bcfc6
Bugfix: report the correct location for wrong opcode.
...
Also add more tests for the "<result-id> = <opcode> <operand>.."
format.
2015-08-24 15:05:08 -04:00
Lei Zhang
ee87cc2a1e
Fix TextAdvance() problems involving whitespace around comment lines.
...
Fix the bug that TextAdvance() forgot to skip whitespace at the
beginning of the next line after a comment line.
Fix the bug that TextAdvanceLine() increase line number after going
over a character.
2015-08-24 15:05:05 -04:00
Andrew Woloszyn
2facab2d08
Added stream operators for spv_binary_t and std::vector<uint32_t>
2015-08-24 15:05:02 -04:00
Lei Zhang
dfc50086a6
Support "<result-id> = <opcode> <operand>.." format.
2015-08-24 15:04:58 -04:00
Andrew Woloszyn
0d350b5992
Make the disassembler print the Extended instruction name.
...
This allows the disassembled output to more closely follow the
original assembly.
2015-08-24 15:04:55 -04:00
Andrew Woloszyn
1d2a87ed1b
Added the initial set of glsl450 instructions.
...
Also rewrote the extended-instruction tests so that they would actually
make sure that the instruction actually appears in the output.
2015-08-24 15:04:49 -04:00
Lei Zhang
fb76d81aa0
Move test fixture into a separate header file so it can be reused.
2015-08-24 15:04:45 -04:00
Kenneth Benzie
67b649fa01
Merge branch 'update-header-to-rev31' into 'master'
...
Update external headers to rev 31
See merge request !3
2015-08-18 05:34:27 -04:00
David Neto
f6184a8b37
Parenthesize SPV_BIT macro to avoid surprises.
2015-08-17 17:01:42 -04:00
Lei Zhang
604e5cea12
Update spirv.h to revision 31.
...
For enum Capability and enum Op, not all newly added enumerants are
registered into capabilityInfoEntries and opcodeTableEntries yet.
That will come in following commits.
2015-08-17 11:40:24 -04:00
Lei Zhang
3a7315498f
Fix failing tests.
...
The generator number is set to SPV_GENERATOR_KHRONOS in the
spvBinaryHeaderSet function, so tests should catch up.
2015-07-30 15:21:42 -04:00
Kenneth Benzie (Benie)
83e5a29b06
Code drop of the Codeplay spirv-tools source.
...
This commit contains the source for the SPIRV static library, spirv-as,
spirv-dis, and spirv-val tools.
2015-05-22 18:26:19 +01:00