mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
i965: perf: count number of accumlated reports
This will be reused later. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
e4387faafb
commit
fb921a2870
1 changed files with 6 additions and 0 deletions
|
|
@ -290,6 +290,10 @@ struct brw_perf_query_object
|
|||
*/
|
||||
bool results_accumulated;
|
||||
|
||||
/**
|
||||
* Number of reports accumulated to produce the results.
|
||||
*/
|
||||
uint32_t reports_accumulated;
|
||||
} oa;
|
||||
|
||||
struct {
|
||||
|
|
@ -658,6 +662,8 @@ add_deltas(struct brw_context *brw,
|
|||
int idx = 0;
|
||||
int i;
|
||||
|
||||
obj->oa.reports_accumulated++;
|
||||
|
||||
switch (query->oa_format) {
|
||||
case I915_OA_FORMAT_A32u40_A4u32_B8_C8:
|
||||
accumulate_uint32(start + 1, end + 1, accumulator + idx++); /* timestamp */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue