mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-10 01:32:16 +00:00
declare and use message for RED_WORKER_MESSAGE_GL_SCANOUT
All other messages (even empty ones) have a structure defined. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
c51f1126eb
commit
5c48cdc61d
@ -853,6 +853,7 @@ void spice_qxl_gl_scanout(QXLInstance *qxl,
|
||||
uint32_t stride, uint32_t format,
|
||||
int y_0_top)
|
||||
{
|
||||
RedWorkerMessageGlScanout payload = { /* empty */ };
|
||||
spice_return_if_fail(qxl != NULL);
|
||||
|
||||
QXLState *qxl_state = qxl->st;
|
||||
@ -877,7 +878,7 @@ void spice_qxl_gl_scanout(QXLInstance *qxl,
|
||||
|
||||
/* FIXME: find a way to coallesce all pending SCANOUTs */
|
||||
dispatcher_send_message(&qxl_state->dispatcher,
|
||||
RED_WORKER_MESSAGE_GL_SCANOUT, NULL);
|
||||
RED_WORKER_MESSAGE_GL_SCANOUT, &payload);
|
||||
}
|
||||
|
||||
SPICE_GNUC_VISIBLE
|
||||
|
||||
@ -284,6 +284,9 @@ typedef struct RedWorkerMessageMonitorsConfigAsync {
|
||||
typedef struct RedWorkerMessageDriverUnload {
|
||||
} RedWorkerMessageDriverUnload;
|
||||
|
||||
typedef struct RedWorkerMessageGlScanout {
|
||||
} RedWorkerMessageGlScanout;
|
||||
|
||||
enum {
|
||||
RED_DISPATCHER_PENDING_WAKEUP,
|
||||
RED_DISPATCHER_PENDING_OOM,
|
||||
|
||||
@ -1381,7 +1381,7 @@ static void register_callbacks(Dispatcher *dispatcher)
|
||||
dispatcher_register_handler(dispatcher,
|
||||
RED_WORKER_MESSAGE_GL_SCANOUT,
|
||||
handle_dev_gl_scanout,
|
||||
0,
|
||||
sizeof(RedWorkerMessageGlScanout),
|
||||
DISPATCHER_NONE);
|
||||
dispatcher_register_handler(dispatcher,
|
||||
RED_WORKER_MESSAGE_GL_DRAW_ASYNC,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user