glsl: Add lowering pass for ir_bin_imul_high
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 27 Jun 2016 22:21:21 +0000 (15:21 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Tue, 19 Jul 2016 19:19:29 +0000 (12:19 -0700)
commita2379e44aa7752c2a1fae42c8a8a6e8e2fb84e87
treedd5d49dd188524060ea13a0c3b840a721fe60627
parent1b5477668a7b1c448f64a69fbb488bcf47c3e029
glsl: Add lowering pass for ir_bin_imul_high

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.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir_optimization.h
src/compiler/glsl/lower_instructions.cpp