gallium: add new numeric types to pipe_query_result
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 9 Jul 2014 11:00:37 +0000 (13:00 +0200)
committerMartin Peres <martin.peres@linux.intel.com>
Tue, 5 May 2015 21:03:35 +0000 (00:03 +0300)
This will be used by GL_AMD_performance_monitor.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Martin Peres <martin.peres@free.fr>
src/gallium/include/pipe/p_defines.h

index 23c3830e3e3fd9cebeb71912dc2cda8020c636d9..b1df8366997b4c1b67e9b43619b69b1cf7c761e7 100644 (file)
@@ -733,8 +733,16 @@ union pipe_query_result
    /* PIPE_QUERY_TIME_ELAPSED */
    /* PIPE_QUERY_PRIMITIVES_GENERATED */
    /* PIPE_QUERY_PRIMITIVES_EMITTED */
+   /* PIPE_DRIVER_QUERY_TYPE_UINT64 */
    uint64_t u64;
 
+   /* PIPE_DRIVER_QUERY_TYPE_UINT */
+   uint32_t u32;
+
+   /* PIPE_DRIVER_QUERY_TYPE_FLOAT */
+   /* PIPE_DRIVER_QUERY_TYPE_PERCENTAGE */
+   float f;
+
    /* PIPE_QUERY_SO_STATISTICS */
    struct pipe_query_data_so_statistics so_statistics;