mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-21 21:17:19 +00:00
[client] egl: do not use DMA when using the spice display
This commit is contained in:
parent
13b9756e80
commit
dc9065b62f
@ -437,18 +437,21 @@ bool egl_desktopRender(EGL_Desktop * desktop, unsigned int outputWidth,
|
|||||||
{
|
{
|
||||||
EGL_Texture * tex;
|
EGL_Texture * tex;
|
||||||
int width, height;
|
int width, height;
|
||||||
|
bool dma;
|
||||||
|
|
||||||
if (unlikely(desktop->useSpice))
|
if (unlikely(desktop->useSpice))
|
||||||
{
|
{
|
||||||
tex = desktop->spiceTexture;
|
tex = desktop->spiceTexture;
|
||||||
width = desktop->spiceWidth;
|
width = desktop->spiceWidth;
|
||||||
height = desktop->spiceHeight;
|
height = desktop->spiceHeight;
|
||||||
|
dma = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
tex = desktop->texture;
|
tex = desktop->texture;
|
||||||
width = desktop->width;
|
width = desktop->width;
|
||||||
height = desktop->height;
|
height = desktop->height;
|
||||||
|
dma = desktop->useDMA;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (unlikely(outputWidth == 0 && outputHeight == 0))
|
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) ||
|
if (atomic_exchange(&desktop->processFrame, false) ||
|
||||||
egl_postProcessConfigModified(desktop->pp))
|
egl_postProcessConfigModified(desktop->pp))
|
||||||
egl_postProcessRun(desktop->pp, tex, desktop->mesh,
|
egl_postProcessRun(desktop->pp, tex, desktop->mesh,
|
||||||
width, height, outputWidth, outputHeight, desktop->useDMA);
|
width, height, outputWidth, outputHeight, dma);
|
||||||
|
|
||||||
unsigned int finalSizeX, finalSizeY;
|
unsigned int finalSizeX, finalSizeY;
|
||||||
EGL_Texture * texture = egl_postProcessGetOutput(desktop->pp,
|
EGL_Texture * texture = egl_postProcessGetOutput(desktop->pp,
|
||||||
|
Loading…
Reference in New Issue
Block a user