[client] egl: revert "only copy damaged areas when using dmabuf"

This reverts commit a14de25661.
Frame is sometimes incorrect.
This commit is contained in:
Quantum
2021-07-18 04:42:48 -04:00
committed by Geoffrey McRae
parent a14de25661
commit c6a6230a56
7 changed files with 18 additions and 35 deletions

View File

@@ -27,7 +27,6 @@
#include "texture.h"
#include "shader.h"
#include "model.h"
#include "util.h"
#include <stdlib.h>
#include <string.h>
@@ -260,16 +259,11 @@ bool egl_desktop_setup(EGL_Desktop * desktop, const LG_RendererFormat format, bo
return true;
}
bool egl_desktop_update(EGL_Desktop * desktop, const FrameBuffer * frame, int dmaFd,
const FrameDamageRect * origRects, int rectsCount)
bool egl_desktop_update(EGL_Desktop * desktop, const FrameBuffer * frame, int dmaFd)
{
FrameDamageRect rects[KVMFR_MAX_DAMAGE_RECTS];
memcpy(rects, origRects, rectsCount * sizeof(FrameDamageRect));
rectsCount = util_mergeOverlappingRects(rects, rectsCount);
if (dmaFd >= 0)
{
if (!egl_texture_update_from_dma(desktop->texture, frame, dmaFd, rects, rectsCount))
if (!egl_texture_update_from_dma(desktop->texture, frame, dmaFd))
return false;
}
else