diff options
author | Ilia Mirkin <[email protected]> | 2015-01-01 01:01:13 -0500 |
---|---|---|
committer | Ilia Mirkin <[email protected]> | 2015-01-01 21:40:35 -0500 |
commit | 9e94b87b6012450d714edc6d0c46b15a89d5ce61 (patch) | |
tree | 122410bb3185ad43c8919fced4a1df3220c04899 /src/gallium/drivers/nouveau/nouveau_mm.c | |
parent | 290553b6d637779cb733549a582230437545d335 (diff) |
nv50/ir: fold MAD when one of the multiplicands is const
Fold MAD dst, src0, immed, src2 (or src0/immed swapped) when
- immed = 0 -> MOV dst, src2
- immed = +/- 1 -> ADD dst, src0, src2
These types of MAD patterns were observed in some st/nine shaders.
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nouveau_mm.c')
0 files changed, 0 insertions, 0 deletions