OSDN Git Service

gallium: make get_query_result return union* and not void*
authorMarek Olšák <maraeo@gmail.com>
Tue, 27 Mar 2012 19:51:50 +0000 (21:51 +0200)
committerMarek Olšák <maraeo@gmail.com>
Fri, 30 Mar 2012 15:12:51 +0000 (17:12 +0200)
commit102ed41ae6287f9f43708d10f3952c3c5b887c45
treeac123bed25ae8be8d7f7486812e26551b06dd47c
parent7d87c71a70c95d4fe3a94676128fd9524f048112
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 <brianp@vmware.com>
src/gallium/include/pipe/p_context.h
src/gallium/include/pipe/p_defines.h