mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 16:20:13 +01:00
intel/ds: move event_id access to perfetto lambda
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16655>
This commit is contained in:
parent
f0160ee2ab
commit
f1ab070d7f
1 changed files with 2 additions and 1 deletions
|
|
@ -299,7 +299,6 @@ end_event(struct intel_ds_queue *queue, uint64_t ts_ns,
|
|||
if (!start_ns)
|
||||
return;
|
||||
|
||||
uint64_t evt_id = device->event_id++;
|
||||
|
||||
IntelRenderpassDataSource::Trace([=](IntelRenderpassDataSource::TraceContext tctx) {
|
||||
if (auto state = tctx.GetIncrementalState(); state->was_cleared) {
|
||||
|
|
@ -309,6 +308,8 @@ end_event(struct intel_ds_queue *queue, uint64_t ts_ns,
|
|||
|
||||
sync_timestamp(tctx, queue->device);
|
||||
|
||||
uint64_t evt_id = device->event_id++;
|
||||
|
||||
auto packet = tctx.NewTracePacket();
|
||||
|
||||
packet->set_timestamp(start_ns);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue