Jason Ekstrand
4fa1366392
nir/spirv: Add a vtn_untyped_value helper
2015-08-31 16:58:20 -07:00
Jason Ekstrand
e709a4ebb8
nir/spirv: Use vtn_value in the types code and fix a off-by-one error
2015-08-31 16:58:20 -07:00
Jason Ekstrand
5e6c5e3c8e
nir/spirv: Add support for deref chains
2015-08-31 16:58:20 -07:00
Jason Ekstrand
befecb3c55
nir/spirv: Add support for OpLabel
2015-08-31 16:58:20 -07:00
Jason Ekstrand
399e962d25
nir/spirv: Add support for declaring functions
2015-08-31 16:58:20 -07:00
Jason Ekstrand
3a266a18ae
nir/spirv: Add support for declaring variables
...
Deref chains and variable load/store operations are still missing.
2015-08-31 16:58:20 -07:00
Jason Ekstrand
2494055631
nir/spirv: Add support for constants
2015-08-31 16:58:20 -07:00
Jason Ekstrand
2a023f30a6
nir/spirv: Add basic support for types
2015-08-31 16:58:20 -07:00
Jason Ekstrand
b79916dacc
nir/spirv: Rework the way values are added
...
Instead of having functions to add values and set various things, we just
have a function that does a few asserts and then returns the value. The
caller is then responsible for setting the various fields.
2015-08-31 16:58:20 -07:00
Jason Ekstrand
ac60aba351
nir/spirv: Add stub support for extension instructions
2015-08-31 16:58:20 -07:00
Jason Ekstrand
b20d9f5643
nir: Add the start of a SPIR-V to NIR translator
...
At the moment, it can handle the very basics of strings and can ignore
debug instructions. It also has basic support for decorations.
2015-08-31 16:58:20 -07:00