Re: DDGPE driver for CE 6.0
- From: gomas <gomas_vincy@xxxxxxxxx>
- Date: Mon, 3 Dec 2007 06:51:36 -0800 (PST)
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,
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 -
- Show 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
.
- Follow-Ups:
- Re: DDGPE driver for CE 6.0
- From: voidcoder
- Re: DDGPE driver for CE 6.0
- Prev by Date: Re: Mobile deivce work as device and as sync
- Next by Date: Re: system power state changes when charging a device
- Previous by thread: Re: compile option change for all sub-directories of public dir
- Next by thread: Re: DDGPE driver for CE 6.0
- Index(es):
Relevant Pages
|
Loading