Skip to content

Commit

Permalink
[client] egl: do not use DMA when using the spice display
Browse files Browse the repository at this point in the history
  • Loading branch information
gnif committed Mar 12, 2024
1 parent 13b9756 commit dc9065b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/renderers/EGL/desktop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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,
Expand Down

0 comments on commit dc9065b

Please sign in to comment.