#include <limits.h>
-struct swr_query {
+struct swr_query_result {
+ SWR_STATS core;
+ SWR_STATS_FE coreFE;
+ uint64_t timestamp_start;
+ uint64_t timestamp_end;
+};
+
+OSALIGNLINE(struct) swr_query {
unsigned type; /* PIPE_QUERY_* */
unsigned index;
- union pipe_query_result *result;
- union pipe_query_result start;
- union pipe_query_result end;
-
+ struct swr_query_result result;
struct pipe_fence_handle *fence;
-
- boolean enable_stats;
};
extern void swr_query_init(struct pipe_context *pipe);
-extern boolean swr_check_render_cond(struct pipe_context *pipe);
+extern bool swr_check_render_cond(struct pipe_context *pipe);
#endif