anv: enable timestamp for INTEL_MEASURE
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7354>
This commit is contained in:
@@ -6396,3 +6396,13 @@ VkResult genX(CmdSetPerformanceStreamMarkerINTEL)(
|
||||
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
void genX(cmd_emit_timestamp)(struct anv_batch *batch,
|
||||
struct anv_bo *bo,
|
||||
uint32_t offset) {
|
||||
anv_batch_emit(batch, GENX(PIPE_CONTROL), pc) {
|
||||
pc.CommandStreamerStallEnable = true;
|
||||
pc.PostSyncOperation = WriteTimestamp;
|
||||
pc.Address = (struct anv_address) {bo, offset};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user