panfrost: Limit blend shader work count
[mesa.git] / src / gallium / drivers / swr / swr_query.h
index 836d07b68ae6ffa3a154849bcadb67a0e5ae2f29..d838dc859e285c71608b647e16513b15f501f55a 100644 (file)
 
 #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