Re: DDGPE driver for CE 6.0



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 it
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.

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
.



Relevant Pages

  • Re: DDGPE driver for CE 6.0
    ... But when the updateOverlay is called to move the mosquito ... > overlay, it shows a rectangle with some color,when it reaches some ... The whole video memory is mapped ... I came across a problem with accessing frame buffer from user ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DDGPE driver for CE 6.0
    ... > overlay, it shows a rectangle with some color,when it reaches some ... This is not the background of mosquito image ... Video memory size is reported ... I came across a problem with accessing frame buffer from user ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DDGPE driver for CE 6.0
    ... The whole video memory (including overlays) is mapped ... I am currently porting a DDGPE based display driver from CE 5 to CE ... I came across a problem with accessing frame buffer from user ...
    (microsoft.public.windowsce.platbuilder)

Loading