[client] egl: fix SPICE video rendering to a HDR surface

If the last state had HDR enabled, the spice video surface was being
rendered as HDR even though the SPICE video content is SDR. This
corrects this.
This commit is contained in:
Geoffrey McRae
2026-07-19 06:33:59 +10:00
parent 90271b936e
commit 3dd41f242e
5 changed files with 93 additions and 25 deletions

View File

@@ -19,6 +19,7 @@
*/
#include "common/ll.h"
#include "interface/renderer.h"
typedef struct
{
@@ -28,6 +29,7 @@ typedef struct
SPICE_OP_DRAW_FILL,
SPICE_OP_DRAW_BITMAP,
SPICE_OP_SHOW,
SURFACE_OP_FORMAT,
CURSOR_OP_STATE,
CURSOR_OP_IMAGE,
}
@@ -65,6 +67,13 @@ typedef struct
}
spiceShow;
struct
{
LG_RendererFormat format;
bool rendererSupportsNativeHDR;
}
surfaceFormat;
struct
{
bool visible;
@@ -103,6 +112,9 @@ void renderQueue_spiceDrawBitmap(int x, int y, int width, int height, int stride
void renderQueue_spiceShow(bool show);
void renderQueue_surfaceFormat(const LG_RendererFormat format,
bool rendererSupportsNativeHDR);
void renderQueue_cursorState(bool visible, int x, int y, int hx, int hy);
void renderQueue_cursorImage(bool monochrome, int width, int height, int pitch,