freedreno/ir3/nir: simplify emit_tex()
authorRob Clark <robclark@freedesktop.org>
Thu, 9 Apr 2015 16:55:49 +0000 (12:55 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 11 Apr 2015 15:40:28 +0000 (11:40 -0400)
commit6e8160d6e3ea7b000de112538dcbb0e29a6c3838
treef9f8b2e9d4d22c66badd9371ae0daa503d7ae711
parentd5357c16cc0ccd84c3475778fcc08a025b8c24f7
freedreno/ir3/nir: simplify emit_tex()

Just build up arrays for src0/src1, and use create_collect()..

Also add back missing .3d flag for 3d/cube textures.

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