nv50: limit the maximum number of samplers to 16
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Jul 2015 11:34:31 +0000 (13:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 20 Jul 2015 16:45:56 +0000 (18:45 +0200)
commit19a6214b0ff707ae52e9624c263b7d6c1c20e6d3
tree412ab33170564b35c5a77074a3749f9e1771b24a
parent6d207b8e3548cd7832a5edc7b847a5e7d06c0925
nv50: limit the maximum number of samplers to 16

NV50_3D_BIND_TSC only allows to bind 16 samplers, and since we don't
want to do anything with NV50_3D_BIND_TSC2, just limit the maximum
number of samplers to 16 like for nvc0.

This fixes dmesg fails with the following piglit test:
 max-samplers

But the test still fails.

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