gallium: remove pipe_driver_query_group_info field type
authorNicolai Hähnle <nhaehnle@gmail.com>
Tue, 10 Nov 2015 12:35:01 +0000 (13:35 +0100)
committerNicolai Hähnle <nhaehnle@gmail.com>
Fri, 20 Nov 2015 16:26:39 +0000 (17:26 +0100)
commitddf27a3dd062c78ff49a69a1396be4de9c1b5d37
tree6b161d511f72ea2be489c00e7513c7cabcb0bda9
parent24dc0316b4d7b29e055f220b23cab7daf4698c0c
gallium: remove pipe_driver_query_group_info field type

This was only used to implement an unnecessarily restrictive interpretation
of the spec of AMD_performance_monitor. The spec says

  A performance monitor consists of a number of hardware and software
  counters that can be sampled by the GPU and reported back to the
  application.

I guess one could take this as a requirement that counters _must_ be sampled
by the GPU, but then why are they called _software_ counters? Besides,
there's not much reason _not_ to expose all counters that are available,
and this simplifies the code.

v3: add a missing change in the nouveau driver (thanks Samuel Pitoiset)

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Tested-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
src/gallium/drivers/nouveau/nvc0/nvc0_query.c
src/gallium/include/pipe/p_defines.h
src/mesa/state_tracker/st_cb_perfmon.c