diff options
author | Nicolai Hähnle <[email protected]> | 2015-11-13 00:27:34 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2015-11-18 12:27:13 +0100 |
commit | 50f0f938e3a577647fdfb6bdbb4ad3da252aa791 (patch) | |
tree | 22bf96be97a54843c0141752435334ff46f86fee /src/gallium/drivers/radeon/r600_query.h | |
parent | c207c55fc08a1bf3dd40e79b3aaec34afbee2e55 (diff) |
radeon: implement r600_query_hw_get_result via function pointers
We will need the clear_result override for the batch query implementation.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_query.h')
-rw-r--r-- | src/gallium/drivers/radeon/r600_query.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_query.h b/src/gallium/drivers/radeon/r600_query.h index c5b720bbc91..f6dc74aa86d 100644 --- a/src/gallium/drivers/radeon/r600_query.h +++ b/src/gallium/drivers/radeon/r600_query.h @@ -83,6 +83,10 @@ struct r600_query_hw_ops { void (*emit_stop)(struct r600_common_context *, struct r600_query_hw *, struct r600_resource *buffer, uint64_t va); + void (*clear_result)(struct r600_query_hw *, union pipe_query_result *); + void (*add_result)(struct r600_common_context *ctx, + struct r600_query_hw *, void *buffer, + union pipe_query_result *result); }; struct r600_query_buffer { |