~/talk

SPIR-V Cross - The War Stories

Talkat Vulkanised 2018 · on Tuesday, 2018-05-22· [compilers-and-language-design]
links:none on file
slides:none on file

A cross-compiler for SPIR-V called SPIR-V Cross is described being used to emit readable GLSL, HLSL and Metal, with loop recovery took four months to turn low-level structured blocks into sane for/while loops so drivers can unroll them. It implements combined image samplers remapped across call graph, flattens UBOs to work on mobile, handles HLSL matrix/layout quirks, and accumulates ~302 closed PRs; it runs in production (games shipping) though many driver and opt-induced bugs required lengthy workarounds.

AI-written summary · about

  1. 0:00Introduction to SPIR-V Cross
  2. 1:08Tool's origins and early challenges
  3. 2:53GLSL readability and debugging
  4. 5:00Loop translation and driver crashes
  5. 7:30Control flow analysis for loops
  6. 8:31Single static assignment pain
  7. 10:19Variable scoping and dominance
  8. 12:50Combined image samplers dilemma
  9. 14:21Flattening uniforms for mobile
  10. 16:28Shadow sampler compatibility issues
  11. 17:56Metal backend's global resource model
  12. 19:43Array value types in shading languages
  13. 21:12HLSL support and matrix madness
  14. 23:45Storage buffer type incompatibilities
  15. 25:30SPIR-V opt's optimization pitfalls
  16. 26:37Continue block abuse in loops
  17. 28:23Phi node ordering bugs
  18. 29:25Inlining and control flow escape
  19. 31:10Optimization and code sanity
  20. 32:37Buffer packing and layout hell
  21. 34:44Metal's struct layout limitations
  22. 35:46SPIR-V's structured advantages
  23. 37:09Development status and future
  24. 38:56Q&A session
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.