nvc0/ir: Only store viewport in scratch register for GP
authorLyude <lyude@redhat.com>
Wed, 19 Apr 2017 22:38:01 +0000 (18:38 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 21 Apr 2017 03:24:06 +0000 (23:24 -0400)
commit214f96c1e78be6dda86c2431fffffca0bd382532
treeb6a4e9c96842d7551b5cc028e6702608b8e7f4dd
parent0e91d8f38c433bead0b26b4bc83a88f27d9f832a
nvc0/ir: Only store viewport in scratch register for GP

EMIT only applies to geometry shaders. For everything else, we want to
export the viewport normally.

Signed-off-by: Lyude <lyude@redhat.com>
Reviewed-by: Boyan Ding <boyan.j.ding@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp