Re: DDGPE driver for CE 6.0



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



Relevant Pages

  • Re: Memory Overlay - ADSP
    ... I am trying to get more info about External Memory Overlay. ... and that information is not necessarily available to the linker. ... to internal memory at runtime is called an overlay manager. ...
    (comp.dsp)
  • Re: Fill Frame Buffer in Video Driver Initialization
    ... This doesn't make sense, there is only 512Mb of memory, giving an address limit of 0x20000000. ... It is interesting to see that the flat physical address is given by the BIOS and passed to the BootArgs: this means that you should be able to use the VGA Flat display driver just as it. ... However, in the MSDN documentation for VirtualAlloc, it says that memory allocated will be initialized to zero. ... 0xEE000000 is not a physical address, unless you have a dedicated frame buffer mapped at physical 0x6E000000, or it is a window in PCI space. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Fill Frame Buffer in Video Driver Initialization
    ... This doesn't make sense, there is only 512Mb of memory, giving an address ... It looks like the bootloader gets the buffer address here ... This is where I should use the VirtualAlloc in the video driver, ... the way it maps the frame buffer. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Memory Overlay
    ... (Linker Descriptor File / Linker Script / Linker Command File) ... can be loaded as part of a single memory image but run at the same ... In GOOGLE I entered Memory Overlay Techniques and got about 312,000 ... to internal memory at runtime is called an overlay manager. ...
    (comp.arch.embedded)
  • 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)