Re: DDGPE driver for CE 6.0
- From: gomas <gomas_vincy@xxxxxxxxx>
- Date: Wed, 5 Dec 2007 03:28:28 -0800 (PST)
On Dec 4, 3:52 am, voidcoder <voidco...@xxxxxxxxx> wrote:
> works. But when the updateOverlay is called to move the mosquito
> overlay, it shows a rectangle with some color,when it reaches some
> points on the screen. This is not the background of mosquito image
> which is black and is always visible.What would be the cause of such a
> behavior.
Sounds like display driver configures incorrectly h/w
or doesn't filter overlay alignment/position/size etc
not supported by h/w.
> I have one more doubt regarding allocation of frame buffer in system
> memory. How can i map the buffer to user mode process?. I went through
> the sample drivers in CE 6.0, but couldnt find anything useful.
You don't have to worry about that one, ddraw will do it for you.
--
Oleg
gomaswrote:
On Nov 19, 4:11 pm, voidcoder <voidco...@xxxxxxxxx> wrote:
Make sure:
1. GUID_GetDriverInfo_VidMemBase is handled properly.
2. Video memory size (DDCAPS.dwVidMemTotal) is reported
correctly.
3. The whole video memory (including overlays) is mapped
to a single contiguous region. DDraw in 6.0 can not
handle discontinuous video memory ...
--
Oleg
gomaswrote:
Hi,- Show quoted text -
I am currently porting a DDGPE baseddisplaydriver from CE 5 to CE
6.0. I came across a problem with accessing frame buffer from user
mode. I was trying to run the mosquito sample with UYVY Overlay
surface,and the application crashed with "Access vioaltion" while
accessing the frame buffer,
case MAKEFOURCC('U','Y','V','Y'):
*(pSurf++) = U;
Can anybody please tell me, what would be the issue. I have read that
the frame buffer mapping is performed by the DDraw module; not by
displaydriver. Is it necessary to map the frame buffer indisplay
driver ? If so, how can we do it.
I tried to solve the issue by adding
GUID_GetDriverInfo_VidMemBase...but not worked....
TIA,
Gomas- Hide quoted text -
Hello,
Thankyou for the response. I modified the value of lpddhi-
ddCaps.dwVidMemTotal to the size of my video memory (5MB) and now itworks. But when the updateOverlay is called to move the mosquito
overlay, it shows a rectangle with some color,when it reaches some
points on the screen. This is not the background of mosquito image
which is black and is always visible.What would be the cause of such a
behavior.
I have one more doubt regarding allocation of frame buffer in system
memory. How can i map the buffer to user mode process?. I went through
the sample drivers in CE 6.0, but couldnt find anything useful.
regards,
Gomas- Hide quoted text -
- Show quoted text -
Thankyou for the response,I shall verify the driver configuration...
Meanwhile, i have still doubts regarding allocating surface from
SYSTEM memory. When i ran cetk test cases, an exception occured when
it tried to fill the surface allocated from system memory. Some post
in the newsgroup also suggests, mapping of surface buffer to the user
application space, if it is allocated from the system memory. I then
tried to map the memory using VirtualAllocCopyEx(...). But failed with
an error code 0x08.
.
- References:
- Re: DDGPE driver for CE 6.0
- From: gomas
- Re: DDGPE driver for CE 6.0
- From: voidcoder
- Re: DDGPE driver for CE 6.0
- Prev by Date: Re: Overlay support for CE 6.0 Display driver
- Next by Date: Re: NK.BIN size and Ram Usage.
- Previous by thread: Re: DDGPE driver for CE 6.0
- Next by thread: Re: Alarm in WINCE6.0
- Index(es):
Relevant Pages
|