QEMU VBE linear frame buffer(solved)

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
salil_bhagurkar
Member
Member
Posts: 261
Joined: Mon Feb 19, 2007 10:40 am
Location: India

QEMU VBE linear frame buffer(solved)

Post by salil_bhagurkar »

I am currently doing some graphics support stuff in my OS. I have a vbe driver which registers and allows me to use both bank switched and linear frame buffer modes.

In order to find whether a mode supports lfb i check its mode attributes. If it does I check if the lfb mode is supported by passing the mode number ORred with 0x4000 to the get mode info function.

My first question is, is this right (passing the 0x4000 ORred mode to check for lfb) ?

This call though, is successful and I set the mode. This works both in Bochs (which supports LFB) and MS virtual pc 2007 (which does not, and hence my driver is able to detect it, and automatically use bank switched mode).

But in QEMU (VBE v2.0) , i find that it does support LFB but when I set the mode, I cannot draw to the mode, even if it is direct color and 24 bpp which is native to my os.

Is this a bug?
Last edited by salil_bhagurkar on Sun Oct 26, 2008 12:26 pm, edited 1 time in total.
User avatar
Walling
Member
Member
Posts: 158
Joined: Mon Dec 04, 2006 6:06 am
Location: Berlin, Germany

Re: QEMU VBE linear frame buffer

Post by Walling »

Do you pass the -std-vga command line argument to QEMU?
User avatar
salil_bhagurkar
Member
Member
Posts: 261
Joined: Mon Feb 19, 2007 10:40 am
Location: India

Re: QEMU VBE linear frame buffer

Post by salil_bhagurkar »

Aw!!
Sorry.. I didn't know that.. Thank you very much @Walling. It worked fine. This post is a waste...
Post Reply