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:
@@ -109,3 +109,7 @@ void genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer,
|
||||
|
||||
void genX(blorp_exec)(struct blorp_batch *batch,
|
||||
const struct blorp_params *params);
|
||||
|
||||
void genX(cmd_emit_timestamp)(struct anv_batch *batch,
|
||||
struct anv_bo *bo,
|
||||
uint32_t offset);
|
||||
|
@@ -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