7686729069
Extract protocol-agnostic FenceTimeline from Intel to shared src/drivers/fence.rs — atomic-based fence tracking suitable for Intel, VIRGL, and AMD drivers. Extract protocol-agnostic SyncobjManager from Intel to shared src/drivers/syncobj.rs — syncobj create/destroy/signal/reset/ wait/query and sync_file fd export/import. Wire both into VirtioDriver: - Add FenceTimeline + SyncobjManager fields - Implement all 5 GpuDriver syncobj trait methods (create, destroy, wait, export_fd, import_fd) - Track fence seqnos in virgl_submit_3d (allocate before submit, signal after completion) Intel fence.rs and syncobj.rs converted to thin re-export modules pointing at shared sources — no behavioral change for Intel driver. This gives Mesa VIRGL userspace the standard DRM syncobj API for GPU/compositor synchronization.
25 lines
878 B
Plaintext
25 lines
878 B
Plaintext
|
|
#--------------------------------------------------------------
|
|
# $File: ctf,v 1.5 2024/06/10 23:09:52 christos Exp $
|
|
# ctf: file(1) magic for CTF (Common Trace Format) trace files
|
|
#
|
|
# Specs. available here: <https://www.efficios.com/ctf>
|
|
#--------------------------------------------------------------
|
|
|
|
# CTF trace data
|
|
0 lelong 0xc1fc1fc1 Common Trace Format (CTF) trace data (LE)
|
|
0 belong 0xc1fc1fc1 Common Trace Format (CTF) trace data (BE)
|
|
|
|
# CTF metadata (packetized)
|
|
0 lelong 0x75d11d57 Common Trace Format (CTF) packetized metadata (LE)
|
|
>35 byte x \b, v%d
|
|
>36 byte x \b.%d
|
|
0 belong 0x75d11d57 Common Trace Format (CTF) packetized metadata (BE)
|
|
>35 byte x \b, v%d
|
|
>36 byte x \b.%d
|
|
|
|
# CTF metadata (plain text)
|
|
0 string /*\x20CTF\x20 Common Trace Format (CTF) plain text metadata
|
|
!:strength + 5 # this is to make sure we beat C
|
|
>&0 regex [0-9]+\\.[0-9]+ \b, v%s
|