[Mesa-dev] [PATCH 00/12] Gallium HUD for multi-context applications

Marek Olšák maraeo at gmail.com
Tue Nov 21 17:46:00 UTC 2017


This series enables more flexibility for the HUD with multi-context
applications like Google Chrome. (with --single-process parameter)

It allows capturing queries from one context and draw the HUD in
a different context. For example, you want to profile a WebGL context
on a web page, but you want to draw the HUD when Chrome calls
SwapBuffers for the whole window (different context).

>From the HUD perspective, it works as follows:
- only one HUD instance is created for a whole context share group
- only one context records queries
- only one context can draw the HUD

If GALLIUM_HUD_SHARE=x,y is set, the new "shared HUD" mode will be
enabled. "x" is the index of the recording context and "y" is
the index of the drawing context.

This has only been tested with an apitrace of Google Chrome.

Please review.


More information about the mesa-dev mailing list