Qemu bpp
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: Qemu bpp
Try running QEMU with the -vga std parameter.abcd1996 wrote:Does QEMU only support 24bits per pixel ? I want to use 32 bits per pixel
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Re: Qemu bpp
Thanks! I just found the same suggestion on google.omarrx024 wrote:Try running QEMU with the -vga std parameter.abcd1996 wrote:Does QEMU only support 24bits per pixel ? I want to use 32 bits per pixel
edit:
The bpp in mode_info struct is still 24
Last edited by abcd1996 on Thu Sep 08, 2016 2:20 pm, edited 1 time in total.
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: Qemu bpp
From my personal experience, QEMU 2.0+ does this by default on Linux, but all versions of QEMU for Windows default to -vga cirrus, which only supports true color as a 24-bit mode.abcd1996 wrote:Thanks! I just found the same suggestion on google.
Why are they not doing this for default
You know your OS is advanced when you stop using the Intel programming guide as a reference.
Re: Qemu bpp
The bpp in mode_info struct is still 24omarrx024 wrote:From my personal experience, QEMU 2.0+ does this by default on Linux, but all versions of QEMU for Windows default to -vga cirrus, which only supports true color as a 24-bit mode.abcd1996 wrote:Thanks! I just found the same suggestion on google.
Why are they not doing this for default
-vga qxl doesn't work either, 0x118 mode still has bpp24
- BrightLight
- Member
- Posts: 901
- Joined: Sat Dec 27, 2014 9:11 am
- Location: Maadi, Cairo, Egypt
- Contact:
Re: Qemu bpp
Very common mistake: NEVER, EVER assume video mode numbers.abcd1996 wrote:The bpp in mode_info struct is still 24
-vga qxl doesn't work either, 0x118 mode still has bpp24
QEMU with -vga std supports 32-bit modes but the mode number is not 0x118. Asking the BIOS for supported video modes is your homework today.
I've written this tutorial on VESA back then. It should clarify things and has example code for reference.
You know your OS is advanced when you stop using the Intel programming guide as a reference.
- Kazinsal
- Member
- Posts: 559
- Joined: Wed Jul 13, 2011 7:38 pm
- Libera.chat IRC: Kazinsal
- Location: Vancouver
- Contact:
Re: Qemu bpp
Don't use VBE 1.0 mode numbers. They are not guaranteed to work for anything other than ancient backwards compatibility, if at all.
Search for high resolution modes by looping through the appropriate VBE calls yourself.
Search for high resolution modes by looping through the appropriate VBE calls yourself.
Re: Qemu bpp
I've read your articles before(many times) , but still assume the mode number because I was lazy. i will do it nowomarrx024 wrote:Very common mistake: NEVER, EVER assume video mode numbers.abcd1996 wrote:The bpp in mode_info struct is still 24
-vga qxl doesn't work either, 0x118 mode still has bpp24
QEMU with -vga std supports 32-bit modes but the mode number is not 0x118. Asking the BIOS for supported video modes is your homework today.
I've written this tutorial on VESA back then. It should clarify things and has example code for reference.
Re: Qemu bpp
Thanks Kazinsal !!Kazinsal wrote:Don't use VBE 1.0 mode numbers. They are not guaranteed to work for anything other than ancient backwards compatibility, if at all.
Search for high resolution modes by looping through the appropriate VBE calls yourself.