[client] egl: make filters damage aware

This saves a lot of GPU power for partial updates. Running testufo with
lanczos downscaling and FSR upscaling consumed over 90 W, but with this
commit, consumed only 75 W.
This commit is contained in:
Quantum
2021-09-01 22:27:36 -04:00
committed by Geoffrey McRae
parent e9bf225c75
commit 1b58f2592c
10 changed files with 103 additions and 35 deletions

View File

@@ -20,6 +20,7 @@
#pragma once
#include "desktop_rects.h"
#include "filter.h"
#include "texture.h"
@@ -39,6 +40,7 @@ bool egl_postProcessConfigModified(EGL_PostProcess * this);
/* apply the filters to the supplied texture
* targetX/Y is the final target output dimension hint if scalers are present */
bool egl_postProcessRun(EGL_PostProcess * this, EGL_Texture * tex,
EGL_DesktopRects * rects, int desktopWidth, int desktopHeight,
unsigned int targetX, unsigned int targetY);
GLuint egl_postProcessGetOutput(EGL_PostProcess * this,