The Gen10+ expected format adds an additional counter which we can't
disclose yet. We can still make the size of the expected query result
match.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
uint64_t HSInvocations;
uint64_t DSInvocations;
uint64_t CSInvocations;
+ uint64_t Reserved1; /* Gen10+ */
};
int gen_perf_query_result_write_mdapi(void *data, uint32_t data_size,
{
const struct gen_device_info *devinfo = &brw->screen->devinfo;
- if (!(devinfo->gen >= 7 && devinfo->gen <= 9))
+ if (!(devinfo->gen >= 7 && devinfo->gen <= 11))
return;
struct gen_perf_query_info *query =
"N compute shader invocations");
}
+ if (devinfo->gen >= 10) {
+ /* Reuse existing CS invocation register until we can expose this new
+ * one.
+ */
+ gen_perf_query_info_add_basic_stat_reg(query, CS_INVOCATION_COUNT,
+ "Reserved1");
+ }
+
query->data_size = sizeof(uint64_t) * query->n_counters;
}