freedreno/ir3: add support for store instructions
authorRob Clark <robclark@freedesktop.org>
Sat, 25 Jul 2015 17:48:07 +0000 (13:48 -0400)
committerRob Clark <robclark@freedesktop.org>
Mon, 27 Jul 2015 17:51:06 +0000 (13:51 -0400)
commit020301baccc77e5753ead1e890c0cf24a9675517
tree1d366c4e5155642e639f4c4d44ea5c924a672492
parenta240748de52f2e469e91b60d29ae872828a594d7
freedreno/ir3: add support for store instructions

For store instructions, the "dst" register is a read register, not a
written register.  (Ie. it is the address to store to.)  Lets not
confuse register allocation, scheduling, etc, with these details.
Instead just leave a dummy instr->regs[0], and take "dst" from
instr->regs[1] and srcs following.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3.c
src/gallium/drivers/freedreno/ir3/ir3.h
src/gallium/drivers/freedreno/ir3/ir3_legalize.c