nv50: report 15 max inputs for fragment programs
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 1 Dec 2013 08:44:42 +0000 (03:44 -0500)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 10 Dec 2013 07:45:59 +0000 (08:45 +0100)
commitbad8871e524cf518bc5da4ac52c1618a115054a7
tree09f7a28b9633595a96cf6bbfdf897eb6021839da
parent5576ad11ed922fad641e630fbb9b199f6434f528
nv50: report 15 max inputs for fragment programs

First off, nv50_program only has 16 in/out varyings. However reporting
16 makes 'm' become 68 in nv50_fp_linkage_validate with the
varying-packing-simple piglit test. (Subverting the assert makes it
compile but fail.) With this patch, varying-packing-simple passes.

See: https://bugs.freedesktop.org/show_bug.cgi?id=69155

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "9.2 10.0" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_screen.c