diff options
author | Lionel Landwerlin <[email protected]> | 2017-06-15 14:47:12 +0100 |
---|---|---|
committer | Lionel Landwerlin <[email protected]> | 2017-06-19 22:11:00 +0100 |
commit | e5743ee014a82f228085dfcd5d653fcbd3d86fe4 (patch) | |
tree | a74990d1bbe3be88f021a6e9efbf564ca319a9e3 /src/mesa/drivers/dri/i965/brw_context.h | |
parent | a26f8d99a6e00315e00ddb0b05fbb4cb4532c7e1 (diff) |
i965: convert MI_REPORT_PERF_COUNT to genxml
Also make it available from gen7 only to gen7+.
Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 2fb2cab9189..f4b5b8335fe 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -646,6 +646,17 @@ struct brw_context uint32_t width, uint32_t height, uint32_t tile_x, uint32_t tile_y); + /** + * Emit an MI_REPORT_PERF_COUNT command packet. + * + * This asks the GPU to write a report of the current OA counter values + * into @bo at the given offset and containing the given @report_id + * which we can cross-reference when parsing the report (gen7+ only). + */ + void (*emit_mi_report_perf_count)(struct brw_context *brw, + struct brw_bo *bo, + uint32_t offset_in_bytes, + uint32_t report_id); } vtbl; struct brw_bufmgr *bufmgr; |