diff options
author | Rob Clark <[email protected]> | 2016-03-25 15:15:44 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-05-11 12:20:11 -0400 |
commit | 5261947260bf63693fc13eaaf8a1e845ab130a57 (patch) | |
tree | 4b9e520742f6b1936095000df6f44100142c8a61 /src/compiler/nir/glsl_to_nir.cpp | |
parent | b10cc245198d375b940a49b4f93a73bc75e47ce8 (diff) |
nir: lower-io-types pass
A pass to lower complex (struct/array/mat) inputs/outputs to primitive
types. This allows, for example, linking that removes unused components
of a larger type which is not indirectly accessed.
In the near term, it is needed for gallium (mesa/st) support for NIR,
since only used components of a type are assigned VBO slots, and we
otherwise have no way to represent that to the driver backend. But it
should be useful for doing shader linking in NIR.
v2: use glsl_count_attribute_slots() rather than passing a type_size
fxn pointer
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/glsl_to_nir.cpp')
0 files changed, 0 insertions, 0 deletions