OSDN Git Service

nvc0: fix the driver cb size when draw parameters are used
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 11 Jul 2016 19:26:25 +0000 (21:26 +0200)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 21 Jul 2016 10:59:33 +0000 (11:59 +0100)
commit76a2950c1ec1587797c28a968030ecee4a8dee60
tree0c0330d92192b3809873918102d9656d1363d043
parentd6c387933d0b1a742e67b9cd93566b2587f00b50
nvc0: fix the driver cb size when draw parameters are used

The size of the driver constant buffer for each stage should be 2048
and not 512 because it has been increased recently for buffers/images.
While we are at it, do the same change for indirect draws.

This fixes all ARB_shader_draw_parameters tests on GM107.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: 12.0 <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 31a615677b26587e63efe2c8cc0bdfecbf82fbae)
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c