[repos] lgprotocol: import shared protocol definitions
Some checks failed
build / client (Debug, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Debug, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:clang cxx:clang++], xdg-shell) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], libdecor) (push) Has been cancelled
build / client (Release, map[cc:gcc cxx:g++], xdg-shell) (push) Has been cancelled
build / module (push) Has been cancelled
build / host-linux (push) Has been cancelled
build / host-windows-cross (push) Has been cancelled
build / host-windows-native (push) Has been cancelled
build / idd (push) Has been cancelled
build / obs (clang) (push) Has been cancelled
build / obs (gcc) (push) Has been cancelled
build / docs (push) Has been cancelled

Add LGProtocol as a pinned submodule and consume its KVMFR protocol
definitions throughout the client, host, IDD, OBS, and profiler.

Keep Looking Glass framebuffer helpers local while removing duplicated
protocol headers and migrating users to KVMFR-scoped types.
This commit is contained in:
Geoffrey McRae
2026-09-01 20:58:25 +10:00
parent 8e43d41873
commit 8fbe3e7454
94 changed files with 619 additions and 2062 deletions

View File

@@ -73,26 +73,26 @@ struct Fake
uint8_t bitmap[64];
size_t bitmapSize;
unsigned int shapeCount;
LG_RendererCursor shapeType;
int shapeWidth;
int shapeHeight;
int shapePitch;
uint8_t shape[64];
size_t shapeSize;
unsigned int cursorCount;
bool cursorVisible;
int cursorX;
int cursorY;
int cursorHX;
int cursorHY;
unsigned int colorCount;
LGColorTransformFlags colorFlags;
float colorScalar;
float colorMatrix;
float colorLut;
unsigned int whiteCount;
uint32_t whiteLevel;
unsigned int shapeCount;
LG_RendererCursor shapeType;
int shapeWidth;
int shapeHeight;
int shapePitch;
uint8_t shape[64];
size_t shapeSize;
unsigned int cursorCount;
bool cursorVisible;
int cursorX;
int cursorY;
int cursorHX;
int cursorHY;
unsigned int colorCount;
KVMFRColorTransformFlags colorFlags;
float colorScalar;
float colorMatrix;
float colorLut;
unsigned int whiteCount;
uint32_t whiteLevel;
unsigned int hdrCount;
LG_RendererFormat hdr[8];
@@ -200,7 +200,7 @@ static bool mouseEvent(LG_Renderer * renderer, bool visible,
}
static void mouseColor(LG_Renderer * renderer,
const LGColorTransform * color)
const KVMFRColorTransform * color)
{
(void)renderer;
++f.colorCount;
@@ -436,7 +436,7 @@ static void testPayload(void)
11, 12, 13, 14, 15, 16, 17, 18,
19, 20, 21, 22, 23, 24, 25, 26,
};
LGColorTransform color =
KVMFRColorTransform color =
{
.flags = LG_COLOR_TRANSFORM_MATRIX | LG_COLOR_TRANSFORM_LUT,
.matrix[0][0] = 2.0f,
@@ -540,7 +540,7 @@ static void testCache(void)
const uint64_t generation =
renderQueue_sourceBegin(RENDER_QUEUE_SOURCE_PRIMARY);
const uint8_t shape[] = { 1, 2, 3, 4 };
LGColorTransform color =
KVMFRColorTransform color =
{
.flags = LG_COLOR_TRANSFORM_MATRIX,
.matrix[0][0] = 1.5f,
@@ -637,7 +637,7 @@ static void testCursorReplacement(void)
const uint64_t generation =
renderQueue_sourceBegin(RENDER_QUEUE_SOURCE_PRIMARY);
const uint8_t shape[] = { 1, 2, 3, 4 };
LGColorTransform color =
KVMFRColorTransform color =
{
.flags = LG_COLOR_TRANSFORM_LUT,
.scalar = 2.0f,