freedreno/ir3: lower arrays to regs
authorRob Clark <robdclark@gmail.com>
Sun, 21 May 2017 16:40:30 +0000 (12:40 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 23 May 2017 16:26:35 +0000 (12:26 -0400)
commitcaa64b24ce4ca32addfae2bcd93b59b1e5225d82
tree63ac793b4ff0469e8a585adf44dca5f0821e5f88
parent232fc995441cc0d69e72f21bba986da0abd8bf72
freedreno/ir3: lower arrays to regs

Instead of using load/store_var intrinsics, which can have complex
derefs in the case of multi-dimensional arrays, lower these to regs
and handle the direct/indirect loads in get_src() and stores in
put_dst().

This should let us switch to using nir by default.

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3.h
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c