nvc0/ir: make sure to align the second arg of TXD to 4, as we do for TEX
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 14 May 2016 23:25:15 +0000 (19:25 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 15 May 2016 14:48:39 +0000 (10:48 -0400)
commit2ef3cdb07e42d985103b5a3e930b2bba676e920b
treeb921a5b64c0f16a3358202bd1c72a4c7005a43f4
parent8c0293979457dab49f0055075d1ca4daa3fb8033
nvc0/ir: make sure to align the second arg of TXD to 4, as we do for TEX

This was handled in handleTEX(), however the way the logic works, those
extra arguments aren't added on by then, so it did nothing. Instead we
must duplicate that bit here. GK110 appears to complain about
MISALIGNED_GPR, however it's reasonable to believe that GK104 has the
same requirements.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=95403
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/codegen/nv50_ir_lowering_nvc0.cpp