diff options
author | Matt Turner <[email protected]> | 2015-09-22 10:30:05 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2016-08-08 17:52:35 -0700 |
commit | b1d9c742e92629086dc1bac423a9254ca26a27ff (patch) | |
tree | ec9f7a1e797786b3a80265bf7dbb9ac30df9523d /docs/postprocess.html | |
parent | 8cde4ddbce330a45d27a350c7f4f18641d34fdd8 (diff) |
nir: Always print non-identity swizzles.
Previously we would not print a swizzle on ssa_52 when only its .x
component is used (as seen in the definition of ssa_53):
vec3 ssa_52 = fadd ssa_51, ssa_51
vec1 ssa_53 = flog2 ssa_52
vec1 ssa_54 = flog2 ssa_52.y
vec1 ssa_55 = flog2 ssa_52.z
But this makes the interpretation of the RHS of the definition difficult
to understand and dependent on the size of the LHS. Just print swizzles
when they are not the identity swizzle, so the previous example is now
printed as:
vec3 ssa_52 = fadd ssa_51.xyz, ssa_51.xyz
vec1 ssa_53 = flog2 ssa_52.x
vec1 ssa_54 = flog2 ssa_52.y
vec1 ssa_55 = flog2 ssa_52.z
Reviewed-by: Timothy Arceri <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'docs/postprocess.html')
0 files changed, 0 insertions, 0 deletions