test/fb_bench: make fb mode consistent with ds

Otherwise, the fb mode may refer to a new mode when the framebuffer is
resized between the call of 'dataspace' and 'mode'.
This commit is contained in:
Norman Feske 2024-10-04 11:29:50 +02:00 committed by Christian Helmuth
parent b1d5a5f7b8
commit 4dd5c6ff8a

View File

@ -31,8 +31,8 @@ struct Test
Timer::Connection timer { env };
Heap heap { env.ram(), env.rm() };
Framebuffer::Connection fb { env, Framebuffer::Mode { } };
Attached_dataspace fb_ds { env.rm(), fb.dataspace() };
Framebuffer::Mode const fb_mode { fb.mode() };
Attached_dataspace fb_ds { env.rm(), fb.dataspace() };
char *buf[2];
Test(Env &env, int id, char const *brief) : env(env), id(id)