Jason Ekstrand
faad82b4e7
nir/validate: Ensure that outputs are write-only and inputs are read-only
...
Reviewed-by: Connor Abbott <cwabbott0@gmail.com >
2015-01-15 07:19:02 -08:00
Jason Ekstrand
9d62df3800
nir: Validate that the sources of a phi have the same size as the destination
...
Reviewed-by: Connor Abbott <cwabbott0@gmail.com >
2015-01-15 07:19:02 -08:00
Jason Ekstrand
829aa98320
nir: Use an integer index for specifying structure fields
...
Previously, we used a string name. It was nice for translating out of GLSL
IR (which also does that) but cumbersome the rest of the time.
Reviewed-by: Connor Abbott <cwabbott0@gmail.com >
2015-01-15 07:19:02 -08:00
Jason Ekstrand
b5143edaee
nir: Make array deref direct vs. indirect an enum
...
Reviewed-by: Connor Abbott <cwabbott0@gmail.com >
2015-01-15 07:19:02 -08:00
Jason Ekstrand
02ee1d22a1
nir: Validate that the SSA def and register indices are unique
...
Reviewed-by: Connor Abbott <cwabbott0@gmail.com >
2015-01-15 07:19:01 -08:00
Jason Ekstrand
73522ec83f
nir: Validate all lists in the validator
...
Reviewed-by: Connor Abbott <cwabbott0@gmail.com >
2015-01-15 07:19:00 -08:00
Connor Abbott
dbb76421da
nir: add a validation pass
...
This is similar to ir_validate.cpp.
v2: Jason Ekstrand <jason.ekstrand@intel.com >:
whitespace fixes
2015-01-15 07:18:58 -08:00