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.
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
## Syntax highlighting for PHP.
|
|
|
|
syntax php "\.(php[23457s~]?|phtml|ctp)$"
|
|
magic "PHP script"
|
|
comment "//"
|
|
|
|
# PHP markings.
|
|
color brightgreen "(<\?(php|=)?|\?>)"
|
|
|
|
# Function names.
|
|
color white "\<[A-Za-z_][A-Za-z_0-9]*\("
|
|
# Variable names.
|
|
color cyan "\$[A-Za-z_][A-Za-z_0-9]*"
|
|
|
|
# Types.
|
|
color green "\<(array|bool|callable|const|float|global|int|object|string|var)\>"
|
|
|
|
# Directives and structure.
|
|
color brightcyan "\<(abstract|as|class|clone|(end)?declare|extends|function|implements|include(_once)?|inst(ance|ead)of|interface|namespace|new|private|protected|public|require(_once)?|static|trait|use|yield)\>"
|
|
color brightcyan "\<(case|catch|default|do|echo|else(if)?|end(for(each)?|if|switch|while)|final(ly)?|for(each)?|if|print|switch|throw|try|while)\>"
|
|
# Operators.
|
|
color brightcyan "\<(and|or|xor)\>"
|
|
|
|
# Control flow.
|
|
color magenta "\<(break|continue|goto|return)\>"
|
|
|
|
# Strings.
|
|
color brightyellow ""([^"\]|\\.)*"|'([^'\]|\\.)*'"
|
|
|
|
# Comments.
|
|
color brightblue "(^|[[:blank:]]+)//.*"
|
|
color brightblue start="/\*" end="\*/"
|
|
|
|
# Trailing whitespace.
|
|
color ,green "[[:space:]]+$"
|