glsl: Add lowering pass for ir_bin_imul_high

Graphics / Mesa 3D Graphics Library / Mesa - Ian Romanick [intel.com] - 19 July 2016 14:19 UTC

This isn't the lowering pass you want. Most GPUs that can support GLSL 1.30 have a multiply unit that can do something more interesting than 32x32->32. Many have 32x16->48. Any GPU that does, should do the lowering in the backend. This is just the thing that will always work.

a2379e4 glsl: Add lowering pass for ir_bin_imul_high
src/compiler/glsl/ir_optimization.h | 1 +
src/compiler/glsl/lower_instructions.cpp | 149 ++++++++++++++++++++++++++++++
2 files changed, 150 insertions(+)

Upstream: cgit.freedesktop.org


  • Share