freedreno/ir3: fold const conversion into consumer
authorRob Clark <robdclark@chromium.org>
Thu, 20 Jun 2019 16:31:00 +0000 (16:31 +0000)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 7 Feb 2020 17:51:25 +0000 (09:51 -0800)
commit3eca6d9ce14abfc542031248be6a53c31cd113f9
treee6f550e1c0b86586fadfd4a6d700a60e430cc83b
parent5e2012d5c7496d04772c83e89d9fa1c9bc4087e2
freedreno/ir3: fold const conversion into consumer

A sequence like:

  (nop3)cov.f32f16 hr0.x, c0.x
  mul.f hr4.y, hr1.z, hr0.x

can be turned into:

  mul.f hr4.y, hr1.z, hc0.x

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3737>
src/freedreno/ir3/ir3.h
src/freedreno/ir3/ir3_cp.c