Skip to content

vrend: support for handling messages emitted from the guest via glDebugMessageInsert

Gert Wollny requested to merge gerddie/virglrenderer:khr_debug into master

This can be useful for debugging and tracing of applications.

The first patches fix error with the command debugging strings and silences some warnings when tracing is not enabled.

Then the handling of the new command is implemented and the debug strings are forwarded to the host driver via glDebugMessageInsert. In addition, when tracing is enabled, specific debug messages that are labeld "BEGIN:" and "END:" can be sent from the guest to declare trace ranges, e.g the begin and the end of a frame. With that the currently used glFinish that also forces a synchronization could be avoided to record the frame info.

The guest side is implemented with mesa/mesa!9433 (merged)

Merge request reports