Skip to contentSkip to conversation

Graphics: Switch to 800x600x32 as default mode

PATCH In review Alexander Graf 3 participants 5 messages Jun 20, 2013 – Jun 21, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Graphics: Switch to 800x600x32 as default mode

We have stayed at 800x600x15 as default graphics mode for the last 9 years. If there ever was a reason to be there, surely nobody remembers it.

However, recently non-Linux PPC guests started to show bad effects on 15 bit color mode. They do work just fine with 32 bits however.

So let's switch to 32 bit color as the default graphic mode.

---
 arch_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch_init.c +1 -1
index a8b91ee..8ba3d07 100644
@@ -65,7 +65,7 @@ int graphic_depth = 8;
 #else
 int graphic_width = 800;
 int graphic_height = 600;
-int graphic_depth = 15;
+int graphic_depth = 32;
 #endif
 
 
Signature · 1 line
1.8.1.4
#1 lore raw
Quoted 5 lines · Alexander Graf

We have stayed at 800x600x15 as default graphics mode for the last 9 years. If there ever was a reason to be there, surely nobody remembers it.

However, recently non-Linux PPC guests started to show bad effects on 15 bit color mode. They do work just fine with 32 bits however.

Have we identified what the actual problem with these guests is? 32 bit might be a more sensible default but "it masks a bug" doesn't seem like a very solid justification for the change...

thanks
-- PMM

#2 lore raw
Quoted 10 lines · Peter Maydell
Quoted 5 lines · Alexander Graf

We have stayed at 800x600x15 as default graphics mode for the last 9 years. If there ever was a reason to be there, surely nobody remembers it.

However, recently non-Linux PPC guests started to show bad effects on 15 bit color mode. They do work just fine with 32 bits however.

Have we identified what the actual problem with these guests is? 32 bit might be a more sensible default but "it masks a bug" doesn't seem like a very solid justification for the change...

Since Linux works just fine, I'd say it falls under the category of "QEMU diverges from typical test systems".

Mark, have you explored the breakages any deeper?

Alex

#3 lore raw
Quoted 9 lines · Alexander Graf
Quoted 7 lines · Peter Maydell
Quoted 5 lines · Alexander Graf

We have stayed at 800x600x15 as default graphics mode for the last 9 years. If there ever was a reason to be there, surely nobody remembers it.

However, recently non-Linux PPC guests started to show bad effects on 15 bit color mode. They do work just fine with 32 bits however.

Quoted 7 lines
Quoted 3 lines

Have we identified what the actual problem with these guests is? 32 bit might be a more sensible default but "it masks a bug" doesn't seem like a very solid justification for the change...

Since Linux works just fine, I'd say it falls under the category of "QEMU diverges from typical test systems".

Mark, have you explored the breakages any deeper?

It seems to be that several OS images in my OpenBIOS test suite are expecting either an 8-bit or 32-bit display depth. For example Darwin and older versions of HelenOS will freeze if they don't have a 8bpp or 32bpp display (and newer versions of HelenOS only work because they realised that no-one had tested 15bpp before running under QEMU and noticed the bug). I suspect it's because of the recent MMU fixes in openbios-ppc which enable it to run a lot more images than before is why no-one actually noticed before :)

Everything is happy on an 8bpp display except for OpenBSD (which only runs on 32bpp) which would favour the higher bit depth, although as I mentioned in my previous text, the console text seems much fainter on a 32bpp display.

My general feeling is that since several test images expect either an 8bpp or 32bpp display then 15bpp is not something that ever existed on real Mac hardware, although I don't know if this is the case or not. While there is some debate as to whether 8bpp or 32bpp is better, the current default definitely seems to be the worst choice for compatibility.

ATB,

Mark.

#4 lore raw
Quoted 8 lines · Mark Cave-Ayland

It seems to be that several OS images in my OpenBIOS test suite are expecting either an 8-bit or 32-bit display depth. For example Darwin and older versions of HelenOS will freeze if they don't have a 8bpp or 32bpp display (and newer versions of HelenOS only work because they realised that no-one had tested 15bpp before running under QEMU and noticed the bug). I suspect it's because of the recent MMU fixes in openbios-ppc which enable it to run a lot more images than before is why no-one actually noticed before :)

Yeah, "guests don't run on 16 bit and they would break on 16 bit hardware too" is a reasonable rationale. What I was trying to establish was whether the problem was that or "QEMU's 16 bit emulation is broken (possibly for some corner case Linux doesn't use)". (I've seen problems with ARM 16 bit graphics before which were actually emulation bugs in the framebuffer device model for some use cases.)

thanks
-- PMM