nv50: fix layerid to be the fp input number rather than vp output number
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 4 Feb 2014 04:35:14 +0000 (23:35 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 6 Feb 2014 23:03:24 +0000 (18:03 -0500)
commit364bdd24197e83bc76b0d244271e57ef4334a859
tree49229f485fc5a5471a8edc7e87886b91b2463011
parentc7373b7dc7202b93eecc1072efda7319b1ad0da8
nv50: fix layerid to be the fp input number rather than vp output number

In the tests they were the same so it didn't matter, but indications are
that this is the correct behaviour. Also take this opportunity to
(trivially) support using gl_Layer in fp.

Cc: 10.1 <mesa-stable@lists.freedesktop.org>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Christoph Bumiller <e0425955@student.tuwien.ac.at>
src/gallium/drivers/nouveau/nv50/nv50_program.c
src/gallium/drivers/nouveau/nv50/nv50_program.h
src/gallium/drivers/nouveau/nv50/nv50_shader_state.c