Re: [Mesa-dev] [PATCH] nvc0: add MP performance counters for SM35 (GK110:GM107)

2016-02-16 Thread Samuel Pitoiset
On 02/16/2016 10:04 PM, Ilia Mirkin wrote: On Tue, Feb 16, 2016 at 3:59 PM, Samuel Pitoiset wrote: static inline const struct nvc0_hw_sm_query_cfg ** nvc0_hw_sm_get_queries(struct nvc0_screen *screen) { + const struct nvc0_hw_sm_query_cfg **queries = NULL; struct nouveau_device *

Re: [Mesa-dev] [PATCH] nvc0: add MP performance counters for SM35 (GK110:GM107)

2016-02-16 Thread Ilia Mirkin
On Tue, Feb 16, 2016 at 3:59 PM, Samuel Pitoiset wrote: > static inline const struct nvc0_hw_sm_query_cfg ** > nvc0_hw_sm_get_queries(struct nvc0_screen *screen) > { > + const struct nvc0_hw_sm_query_cfg **queries = NULL; > struct nouveau_device *dev = screen->base.device; > > - if (dev

[Mesa-dev] [PATCH] nvc0: add MP performance counters for SM35 (GK110:GM107)

2016-02-16 Thread Samuel Pitoiset
Because compute support is not enabled by default for these chipsets, NVF0_COMPUTE=1 needs to be used, along with GALLIUM_HUD to enable performance counters. Signed-off-by: Samuel Pitoiset --- .../drivers/nouveau/nvc0/nvc0_query_hw_sm.c| 755 ++--- .../drivers/nouveau/nvc