From dc9065b62f2c9a7502ef13792644b77d0c38f3a9 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Tue, 12 Mar 2024 13:57:23 +1100 Subject: [PATCH] [client] egl: do not use DMA when using the spice display --- client/renderers/EGL/desktop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index cbcf1583..31ba40cf 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -437,18 +437,21 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth, { EGL_Texture * tex; int width, height; + bool dma; if (unlikely(desktop->useSpice)) { tex = desktop->spiceTexture; width = desktop->spiceWidth; height = desktop->spiceHeight; + dma = false; } else { tex = desktop->texture; width = desktop->width; height = desktop->height; + dma = desktop->useDMA; } if (unlikely(outputWidth == 0 && outputHeight == 0)) @@ -470,7 +473,7 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth, if (atomic_exchange(&desktop->processFrame, false) || egl_postProcessConfigModified(desktop->pp)) egl_postProcessRun(desktop->pp, tex, desktop->mesh, - width, height, outputWidth, outputHeight, desktop->useDMA); + width, height, outputWidth, outputHeight, dma); unsigned int finalSizeX, finalSizeY; EGL_Texture * texture = egl_postProcessGetOutput(desktop->pp,