Wined3d: added A2R10G10B10 and D3DFMT_D24FS8

Karsten Elfenbein kelfe at gmx.de
Sun Sep 4 05:30:54 CDT 2005


Added A2R10G10B10 and D3DFMT_D24FS8 modes to all other functions.

Karsten

> -----Ursprüngliche Nachricht-----
> Von: wine-patches-bounces at winehq.org
> [mailto:wine-patches-bounces at winehq.org] Im Auftrag von Oliver Stieber
> Gesendet: Samstag, 3. September 2005 22:15
> An: wine-devel at winehq.org; wine-patches at winehq.org
> Betreff: ***SPAM*** Re: Wined3d: added A2R10G10B10 and D3DFMT_D24FS8
> 
> 
> 
> --- Karsten Elfenbein <kelfe at gmx.de> wrote:
> Can you put together a patch to add A2R10G10B10 and
> D3DFMT_D24FS8  to utils.c as well please.
> 
> D3DFmt2GLIntFmt needs to return GL_RGBA, D3DFmt2GLFmt needs
> to return GL_RGBA, D3DFmt2GLType needs to return 
> GL_UNSIGNED_INT_2_10_10_10_REV, D3DFmtGetBpp needs to return 4,
>  D3DFmtMakeGlCfg needs to     
>         PUSH2(GLX_ALPHA_SIZE,   2);        
>         PUSH2(GLX_RED_SIZE,     10);
>         PUSH2(GLX_GREEN_SIZE,   10);
>         PUSH2(GLX_BLUE_SIZE,    10);
> 
> Also in surface.c IWineD3DSurfaceImpl_UnlockRect needs to use
>                
>  glDrawPixels(This->lockedRect.right - This->lockedRect.left,
> (This->lockedRect.bottom -
> This->lockedRect.top) - 1, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV,
> This->resource.allocatedMemory);
> when unlocking the back buffer
> 
> 
> Thanks,
>     Oliver.
> > Changelog:
> > * added A2R10G10B10 and D3DFMT_D24FS8 modes
> > > 
> > 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eve2.diff
Type: application/octet-stream
Size: 7284 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050904/f671ef0a/eve2-0001.obj


More information about the wine-patches mailing list