wsi, turnip: add some cpu tracepoints
This is based upon !18260 (merged). There are 3 commits to add MESA_TRACE_*
to a few places in wsi and turnip.
The visualization of a vkcube frame looks like this:
- at the beginning, vkcube is waiting for the next image
- then wsi thread adds an image to acquire queue (in resopnse to
XCB_PRESENT_EVENT_IDLE_NOTIFY
) and unblocks vkcube - vkcube does a queue submit followed by a queue present
- vkcube is blocked waiting for the next image again
The original trace is at https://ui.perfetto.dev/#!/?s=9bedbe85391acd7a39abd358d1525638d95b5e171f4c2c57d6a43a870978c82. The basic controls use W, S, A, D keys and the mouse.