diff options
author | Ian Romanick <[email protected]> | 2016-06-27 15:21:21 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-07-19 12:19:29 -0700 |
commit | a2379e44aa7752c2a1fae42c8a8a6e8e2fb84e87 (patch) | |
tree | dd5d49dd188524060ea13a0c3b840a721fe60627 /src/compiler/glsl/ir_optimization.h | |
parent | 1b5477668a7b1c448f64a69fbb488bcf47c3e029 (diff) |
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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_optimization.h')
-rw-r--r-- | src/compiler/glsl/ir_optimization.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_optimization.h b/src/compiler/glsl/ir_optimization.h index 2c7e6155ecb..c29260a45ca 100644 --- a/src/compiler/glsl/ir_optimization.h +++ b/src/compiler/glsl/ir_optimization.h @@ -48,6 +48,7 @@ #define REVERSE_TO_SHIFTS 0x10000 #define FIND_LSB_TO_FLOAT_CAST 0x20000 #define FIND_MSB_TO_FLOAT_CAST 0x40000 +#define IMUL_HIGH_TO_MUL 0x80000 /** * \see class lower_packing_builtins_visitor |