nv50,nvc0: clamp uniform size to 64k
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 15 Jun 2015 19:48:58 +0000 (15:48 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 15 Jun 2015 19:48:58 +0000 (15:48 -0400)
commit8b24388647f626a5cad10fd48e61335ed26a8560
tree8b69395738962b94d5026370e34a9c55222cea72
parenta2af42c1d2dc91f4c31e25ff9fff15a89a9b6ead
nv50,nvc0: clamp uniform size to 64k

The state tracker will pass through requests from buggy applications
which will have the buffer size larger than the max allowed (64k). Clamp
the size to 64k so that we don't get errors when uploading the constbuf
data.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.5 10.6" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c