nvc0: store the number of GPCs to nvc0_screen
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 6 Oct 2015 20:24:31 +0000 (22:24 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 16 Oct 2015 19:57:44 +0000 (21:57 +0200)
commit1825898e0471915673e572db4f61f1fd42461150
tree5c8459916aa927a1194050910d942446472b5669
parentc4896c99cbe10b829981250465baf0b00e18ba40
nvc0: store the number of GPCs to nvc0_screen

NOUVEAU_GETPARAM_GRAPH_UNITS param returns the number of GPCs, the total
number of TPCs and the number of ROP units. Note that when the DRM
version is too old the default number of GPCs is fixed to 4.

This will be used to launch the compute kernel which is used to read MP
performance counters over all GPCs.

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