nvc0: allocate more space before a counter is configured
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 4 Jul 2014 14:34:59 +0000 (16:34 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 8 Jul 2014 23:41:00 +0000 (19:41 -0400)
commit50bbe49c330095ba451d0f48c56759d148a609c2
treec0b54955a44a91090ae47532bbe044583ac6c5c3
parenta9b21015f5e3a6a37e53a8b3c755519f7b70479e
nvc0: allocate more space before a counter is configured

On nvc0, a counter can have up to 6 sources instead of only one
for nve4+. This fixes a crash when a counter uses more than
one source.

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