gm107/ir: allow indirect inputs to be loaded by frag shader
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 8 Sep 2016 06:13:56 +0000 (02:13 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sat, 10 Sep 2016 17:40:04 +0000 (13:40 -0400)
commita8c0c7301cccd6bba1842ae8aa901cd45d9d5ffd
tree307042aa435ada8d7c3c7af53b452cf7b02844e6
parenta22aee5ad1154918aff77af5102fecd2aa39a631
gm107/ir: allow indirect inputs to be loaded by frag shader

Looks like the GM107 IPA op does not allow a separate offset when
using an indirect register. Instead we must use AL2P like we do for
indirect vertex operations on Kepler+.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c