OSDN Git Service

nv50,nvc0: clamp uniform size to 64k
authorIlia Mirkin <imirkin@alum.mit.edu>
Mon, 15 Jun 2015 19:48:58 +0000 (15:48 -0400)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 18 Jun 2015 12:43:56 +0000 (13:43 +0100)
commit512927bc021c20235213b8ba4c6ebb5432fecc5e
tree40578c72b09fdd70b32561c15c2ceb19270513e1
parentb26bac8b1e094b8400c2f5dfa22283c23dda4080
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>
(cherry picked from commit 8b24388647f626a5cad10fd48e61335ed26a8560)
src/gallium/drivers/nouveau/nv50/nv50_state.c
src/gallium/drivers/nouveau/nvc0/nvc0_state.c