virgl: Add command and flags to initiate debugging on the host (v2)
authorGert Wollny <gert.wollny@collabora.com>
Wed, 12 Sep 2018 09:59:35 +0000 (11:59 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Tue, 13 Nov 2018 13:42:22 +0000 (14:42 +0100)
commit8d4bb6e5cd674da31d665ea54f5a500e8c7c1a6f
tree813252a5a608d06ee77cc6c7a5287e794e0a9d5c
parentcaa964b422152788a95a1b248c884df8918a2bbd
virgl: Add command and flags to initiate debugging on the host (v2)

On the host VREND_DEBUG=guestallow must be set to let the guest override
the debug flags.

v2: Send flag string instead of flags, this avoids the need to keep
    the flags in sync.
v3: Only request host logging if the host actually understands the command

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
src/gallium/drivers/virgl/virgl_context.c
src/gallium/drivers/virgl/virgl_encode.c
src/gallium/drivers/virgl/virgl_encode.h
src/gallium/drivers/virgl/virgl_hw.h
src/gallium/drivers/virgl/virgl_protocol.h