aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/lima/ir/pp/node_to_instr.c
diff options
context:
space:
mode:
authorErico Nunes <[email protected]>2019-07-28 21:25:42 +0200
committerErico Nunes <[email protected]>2019-07-31 21:22:41 +0200
commitd2901de09ed33200c5753aebc094529316e61f66 (patch)
treeb380f114e6af1313f812e8780ccc76f6416076b5 /src/gallium/drivers/lima/ir/pp/node_to_instr.c
parent412e1b51fee9bc8bbb6ade21687cd02a65a62bb3 (diff)
lima/ppir: lower texture projection
Lower texture projection in ppir using nir_lower_tex and nir_lower_tex. This will insert a mul with the coordinate division before the load varying. Even though the lima pp supports projection in the load varying instruction while loading the coordinates (from a register or a varying), it requires that both the coordinates and projector be components in a single register. nir currently handles them in separate ssa, and attempting to merge them manually may end up in worse code than just doing the coordinate division manually. So for now let's just lower the projection to add support for it in lima. In the future, an optimization pass may be implemented in lima to ensure that both coords and projector come in the same register, then this lowering may be disabled and in this case lima may use the built-in projection and save the mul instruction from lowering. Signed-off-by: Erico Nunes <[email protected]> Reviewed-by: Qiang Yu <[email protected]>
Diffstat (limited to 'src/gallium/drivers/lima/ir/pp/node_to_instr.c')
0 files changed, 0 insertions, 0 deletions