1 /* 2 * Copyright © 2014 Rob Clark <[email protected]> 3 * SPDX-License-Identifier: MIT 4 * 5 * Authors: 6 * Rob Clark <[email protected]> 7 */ 8 9 #ifndef FREEDRENO_QUERY_SW_H_ 10 #define FREEDRENO_QUERY_SW_H_ 11 12 #include "freedreno_query.h" 13 14 /* 15 * SW Queries: 16 * 17 * In the core, we have some support for basic sw counters 18 */ 19 20 struct fd_sw_query { 21 struct fd_query base; 22 uint64_t begin_value, end_value; 23 uint64_t begin_time, end_time; 24 }; 25 26 static inline struct fd_sw_query * fd_sw_query(struct fd_query * q)27fd_sw_query(struct fd_query *q) 28 { 29 return (struct fd_sw_query *)q; 30 } 31 32 struct fd_query *fd_sw_create_query(struct fd_context *ctx, unsigned query_type, 33 unsigned index); 34 35 #endif /* FREEDRENO_QUERY_SW_H_ */ 36