Hi Michal,
On 27.03.20 15:49, Michal Zygowski wrote:
Another question about libgfxinit.
Up till Skylake the libgfxinit worked great for me, however after enabling it on a Kaby Lake platform I noticed the colors are flipped. I.e. when using VGA ROM the bootsplash image is correctly displayed in RGB, but when using libgfxinit and hires FB the colors are BGR (the same image is not displayed in same way). Do you possibly know what may the cause?
all I know is that with libgfxinit, so far you get the exact same pixel encoding for every platform (where I tested colors). I think it's BGRX.
What mode do you set with the VGA ROM? In the end it should be reported in a `struct lb_framebuffer` so you could compare the two encodings. Also, the code that loads the picture should write the pixels according to the reported format. Unless somebody took too many shortcuts.
Nico