summaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_context.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2012-03-27 21:51:50 +0200
committerMarek Olšák <[email protected]>2012-03-30 17:12:51 +0200
commit102ed41ae6287f9f43708d10f3952c3c5b887c45 (patch)
treeac123bed25ae8be8d7f7486812e26551b06dd47c /src/gallium/include/pipe/p_context.h
parent7d87c71a70c95d4fe3a94676128fd9524f048112 (diff)
gallium: make get_query_result return union* and not void*
This replaces the cryptic void* parameter with a union. (based on union r600_query_result) Users of this can still pass uint64* in it, but that cannot work for every query type, obviously. Most importantly, the code now documents what should be expected from get_query_result. This also adds pipe_query_data_pipeline_statistics as per the D3D11 docs. v2: fix indentation, add comments and use the doxygen style Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_context.h')
-rw-r--r--src/gallium/include/pipe/p_context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index aaeeb81851b..8b4a1588b86 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -64,6 +64,7 @@ struct pipe_video_buffer;
struct pipe_video_decoder;
struct pipe_viewport_state;
union pipe_color_union;
+union pipe_query_result;
/**
* Gallium rendering context. Basically:
@@ -117,7 +118,7 @@ struct pipe_context {
boolean (*get_query_result)(struct pipe_context *pipe,
struct pipe_query *q,
boolean wait,
- void *result);
+ union pipe_query_result *result);
/*@}*/
/**