gallium: add new fields to pipe_driver_query_info
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 4 Jul 2014 09:41:46 +0000 (11:41 +0200)
committerMartin Peres <martin.peres@linux.intel.com>
Tue, 5 May 2015 21:03:35 +0000 (00:03 +0300)
commitb620829b5e4364e9d5ed30e8603de41087ff454f
tree8ca84bfcd78932202f369400a3aafd2484691b03
parentf137f5c691f5bd97a8b7f881f1f6837bff0ebc7a
gallium: add new fields to pipe_driver_query_info

According to the spec of GL_AMD_performance_monitor, valid type values
returned are UNSIGNED_INT, UNSIGNED_INT64_AMD, PERCENTAGE_AMD, FLOAT.
This also introduces the new field group_id in order to categorize
queries into groups.

v2: add PIPE_DRIVER_QUERY_TYPE_BYTES

v3: fix incorrect query type for radeon and svga drivers

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
src/gallium/auxiliary/hud/hud_driver_query.c
src/gallium/drivers/nouveau/nvc0/nvc0_query.c
src/gallium/drivers/radeon/r600_pipe_common.c
src/gallium/drivers/svga/svga_screen.c
src/gallium/include/pipe/p_defines.h