OSDN Git Service

nir: add nir_lower_amul pass
authorRob Clark <robdclark@chromium.org>
Fri, 27 Sep 2019 17:15:02 +0000 (10:15 -0700)
committerRob Clark <robdclark@chromium.org>
Fri, 18 Oct 2019 22:08:54 +0000 (15:08 -0700)
commit5e08f070f0fc99246fa8aab027feeee33b774177
tree973a6e49abedd052345cc0690bf3e70219779b72
parent1bdde313926b698d9959294f1563264ead532b46
nir: add nir_lower_amul pass

Lower amul to either imul or imul24, depending on whether 24b is enough
bits to calculate an offset within the thing being dereferenced.

Signed-off-by: Rob Clark <robdclark@chromium.org>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_amul.c [new file with mode: 0644]
src/compiler/nir/nir_opt_algebraic.py
src/freedreno/ir3/ir3_nir.c
src/freedreno/ir3/ir3_shader.c