[client] render: optimize software surface fills

This commit is contained in:
Geoffrey McRae
2026-08-12 03:31:52 +10:00
parent 5e8066609a
commit 0c21577e9e
5 changed files with 49 additions and 29 deletions

View File

@@ -721,11 +721,11 @@ static void testSurfaceEvents(void)
CHECK(f.log.configN == 1);
CHECK(f.log.width == 2);
CHECK(f.log.height == 1);
CHECK(f.log.fillN == 1);
CHECK(f.log.fillN == 0);
spiceSurface_drawFill(
f.transport.surface, 0, 1, 2, 3, 4, 0xaabbccdd);
CHECK(f.log.fillN == 2);
CHECK(f.log.fillN == 1);
CHECK(f.log.x == 1);
CHECK(f.log.y == 2);
CHECK(f.log.w == 3);
@@ -776,7 +776,7 @@ static void testSurfaceEvents(void)
spiceSurface_destroy(f.transport.surface, 0);
CHECK(f.log.destroyN == 1);
spiceSurface_drawFill(f.transport.surface, 0, 0, 0, 1, 1, 0);
CHECK(f.log.fillN == 2);
CHECK(f.log.fillN == 1);
sw->detach(&f.transport);
freeFixture(&f);
}
@@ -844,9 +844,9 @@ static void testSurfaceDetach(void)
CHECK(pthread_join(detachThread, NULL) == 0);
CHECK(atomic_load(&detach.done));
CHECK(f.log.configN == 1);
CHECK(f.log.fillN == 1);
CHECK(f.log.fillN == 0);
spiceSurface_drawFill(f.transport.surface, 0, 0, 0, 1, 1, 0);
CHECK(f.log.fillN == 1);
CHECK(f.log.fillN == 0);
freeFixture(&f);
}