From: Samuel Pitoiset Date: Wed, 9 Jul 2014 11:00:37 +0000 (+0200) Subject: gallium: add new numeric types to pipe_query_result X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d5b2832c1151337d37217a30bcb55d7f90dd1b47;p=mesa.git gallium: add new numeric types to pipe_query_result This will be used by GL_AMD_performance_monitor. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák Reviewed-by: Martin Peres --- diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index 23c3830e3e3..b1df8366997 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -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;