headless: Use display buf for compare screenshot.

This is what the test actually uses too.
This commit is contained in:
Unknown W. Brackets 2022-09-20 14:05:50 -07:00
parent bf86f00df8
commit 1dc1b2c35b
2 changed files with 2 additions and 2 deletions

View file

@ -46,7 +46,7 @@ void HeadlessHost::SendDebugScreenshot(const u8 *pixbuf, u32 w, u32 h) {
const static u32 FRAME_HEIGHT = 272; const static u32 FRAME_HEIGHT = 272;
GPUDebugBuffer buffer; GPUDebugBuffer buffer;
gpuDebug->GetCurrentFramebuffer(buffer, GPU_DBG_FRAMEBUF_RENDER); gpuDebug->GetCurrentFramebuffer(buffer, GPU_DBG_FRAMEBUF_DISPLAY);
const std::vector<u32> pixels = TranslateDebugBufferToCompare(&buffer, 512, 272); const std::vector<u32> pixels = TranslateDebugBufferToCompare(&buffer, 512, 272);
ScreenshotComparer comparer(pixels, FRAME_STRIDE, FRAME_WIDTH, FRAME_HEIGHT); ScreenshotComparer comparer(pixels, FRAME_STRIDE, FRAME_WIDTH, FRAME_HEIGHT);

View file

@ -150,6 +150,7 @@ tests_good = [
"gpu/commands/cull", "gpu/commands/cull",
"gpu/commands/fog", "gpu/commands/fog",
"gpu/commands/material", "gpu/commands/material",
"gpu/complex/complex",
"gpu/displaylist/alignment", "gpu/displaylist/alignment",
"gpu/dither/dither", "gpu/dither/dither",
"gpu/filtering/mipmaplinear", "gpu/filtering/mipmaplinear",
@ -391,7 +392,6 @@ tests_next = [
"font/shadowinfo", "font/shadowinfo",
"gpu/clipping/guardband", "gpu/clipping/guardband",
"gpu/commands/light", "gpu/commands/light",
"gpu/complex/complex",
"gpu/depth/precision", "gpu/depth/precision",
"gpu/displaylist/state", "gpu/displaylist/state",
"gpu/filtering/linear", "gpu/filtering/linear",