winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
February 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
839 discussions
Start a n
N
ew thread
Dmitry Timoshkov : gdi32: Skip the SYMBOL_CHARSET test if Symbol or Wingdings is not installed.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: 8295d9040b389ca81ef1136758a87951dd1f6a67 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8295d9040b389ca81ef113675…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Thu Feb 15 23:14:01 2007 +0800 gdi32: Skip the SYMBOL_CHARSET test if Symbol or Wingdings is not installed. --- dlls/gdi32/tests/font.c | 40 +++++++++++++++++++++++++++++++++++----- 1 files changed, 35 insertions(+), 5 deletions(-) diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index 2d19c8c..ada2c7f 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -827,8 +827,10 @@ static BOOL get_glyph_indices(INT charset, UINT code_page, WORD *idx, UINT count LOGFONTA lf; HFONT hfont, hfont_old; CHARSETINFO csi; + FONTSIGNATURE fs; INT cs; DWORD i, ret; + char name[64]; assert(count <= 128); @@ -844,9 +846,24 @@ static BOOL get_glyph_indices(INT charset, UINT code_page, WORD *idx, UINT count hdc = GetDC(0); hfont_old = SelectObject(hdc, hfont); - cs = GetTextCharset(hdc); + cs = GetTextCharsetInfo(hdc, &fs, 0); ok(cs == charset, "expected %d, got %d\n", charset, cs); + SetLastError(0xdeadbeef); + ret = GetTextFace(hdc, sizeof(name), name); + ok(ret, "GetTextFace error %u\n", GetLastError()); + + if (charset == SYMBOL_CHARSET) + { + ok(strcmp("Arial", name), "face name should NOT be Arial\n"); + ok(fs.fsCsb[0] & (1 << 31), "symbol encoding should be available\n"); + } + else + { + ok(!strcmp("Arial", name), "face name should be Arial, not %s\n", name); + ok(!(fs.fsCsb[0] & (1 << 31)), "symbol encoding should NOT be available\n"); + } + if (!TranslateCharsetInfo((DWORD *)cs, &csi, TCI_SRCCHARSET)) { trace("Can't find codepage for charset %d\n", cs); @@ -1020,8 +1037,8 @@ static void test_font_charset(void) } cd[] = { { ANSI_CHARSET, 1252 }, - { SYMBOL_CHARSET, CP_SYMBOL }, - { RUSSIAN_CHARSET, 1251 } + { RUSSIAN_CHARSET, 1251 }, + { SYMBOL_CHARSET, CP_SYMBOL } /* keep it as the last one */ }; int i; @@ -1042,14 +1059,27 @@ static void test_font_charset(void) for (i = 0; i < sizeof(cd)/sizeof(cd[0]); i++) { + if (cd[i].charset == SYMBOL_CHARSET) + { + if (!is_font_installed("Symbol") && !is_font_installed("Wingdings")) + { + skip("Symbol or Wingdings is not installed\n"); + break; + } + } get_glyph_indices(cd[i].charset, cd[i].code_page, cd[i].font_idxA, 128, FALSE); get_glyph_indices(cd[i].charset, cd[i].code_page, cd[i].font_idxW, 128, TRUE); ok(!memcmp(cd[i].font_idxA, cd[i].font_idxW, 128*sizeof(WORD)), "%d: indices don't match\n", i); } ok(memcmp(cd[0].font_idxW, cd[1].font_idxW, 128*sizeof(WORD)), "0 vs 1: indices shouldn't match\n"); - ok(memcmp(cd[0].font_idxW, cd[2].font_idxW, 128*sizeof(WORD)), "0 vs 2: indices shouldn't match\n"); - ok(memcmp(cd[1].font_idxW, cd[2].font_idxW, 128*sizeof(WORD)), "1 vs 2: indices shouldn't match\n"); + if (i > 2) + { + ok(memcmp(cd[0].font_idxW, cd[2].font_idxW, 128*sizeof(WORD)), "0 vs 2: indices shouldn't match\n"); + ok(memcmp(cd[1].font_idxW, cd[2].font_idxW, 128*sizeof(WORD)), "1 vs 2: indices shouldn't match\n"); + } + else + skip("Symbol or Wingdings is not installed\n"); } START_TEST(font)
1
0
0
0
Dmitry Timoshkov : gdi32: Fix a typo in the memcmp call.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: 64e1ce40aa5925120b133238198022fd6ea078f7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=64e1ce40aa5925120b1332381…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Thu Feb 15 21:27:28 2007 +0800 gdi32: Fix a typo in the memcmp call. --- dlls/gdi32/tests/font.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdi32/tests/font.c b/dlls/gdi32/tests/font.c index e8e2527..2d19c8c 100644 --- a/dlls/gdi32/tests/font.c +++ b/dlls/gdi32/tests/font.c @@ -1044,7 +1044,7 @@ static void test_font_charset(void) { get_glyph_indices(cd[i].charset, cd[i].code_page, cd[i].font_idxA, 128, FALSE); get_glyph_indices(cd[i].charset, cd[i].code_page, cd[i].font_idxW, 128, TRUE); - ok(!memcmp(cd[i].font_idxA, cd[i].font_idxW, 128), "%d: indices don't match\n", i); + ok(!memcmp(cd[i].font_idxA, cd[i].font_idxW, 128*sizeof(WORD)), "%d: indices don't match\n", i); } ok(memcmp(cd[0].font_idxW, cd[1].font_idxW, 128*sizeof(WORD)), "0 vs 1: indices shouldn't match\n");
1
0
0
0
H. Verbeet : wined3d: Get rid of any remaining d3d9 stuff in surface. c and surface_gdi.c.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: 75ebf29e1b4020e773400e4ad1b5673ddba90007 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=75ebf29e1b4020e773400e4ad…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:32:25 2007 +0100 wined3d: Get rid of any remaining d3d9 stuff in surface.c and surface_gdi.c. --- dlls/wined3d/surface.c | 6 +++--- dlls/wined3d/surface_gdi.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index b8acb89..57a5b8a 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -590,7 +590,7 @@ static HRESULT WINAPI IWineD3DSurfaceImpl_LockRect(IWineD3DSurface *iface, WINED (pRect->bottom > This->currentDesc.Height)) { WARN(" Invalid values in pRect !!!\n"); - return D3DERR_INVALIDCALL; + return WINED3DERR_INVALIDCALL; } if (This->resource.format == WINED3DFMT_DXT1) { /* DXT1 is half byte per pixel */ @@ -1330,7 +1330,7 @@ HRESULT WINAPI IWineD3DSurfaceImpl_ReleaseDC(IWineD3DSurface *iface, HDC hDC) { TRACE("(%p)->(%p)\n",This,hDC); if (!(This->Flags & SFLAG_DCINUSE)) - return D3DERR_INVALIDCALL; + return WINED3DERR_INVALIDCALL; /* we locked first, so unlock now */ IWineD3DSurface_UnlockRect(iface); @@ -2415,7 +2415,7 @@ static HRESULT IWineD3DSurfaceImpl_BltOverride(IWineD3DSurfaceImpl *This, RECT * if( dstSwapchain->backBuffer && ((IWineD3DSurface *) This == dstSwapchain->frontBuffer) && SrcSurface == dstSwapchain->backBuffer[0] ) { - D3DSWAPEFFECT orig_swap = dstSwapchain->presentParms.SwapEffect; + WINED3DSWAPEFFECT orig_swap = dstSwapchain->presentParms.SwapEffect; /* The idea behind this is that a glReadPixels and a glDrawPixels call * take very long, while a flip is fast. diff --git a/dlls/wined3d/surface_gdi.c b/dlls/wined3d/surface_gdi.c index 1ef0383..87ee0d0 100644 --- a/dlls/wined3d/surface_gdi.c +++ b/dlls/wined3d/surface_gdi.c @@ -164,7 +164,7 @@ IWineGDISurfaceImpl_LockRect(IWineD3DSurface *iface, { ERR("(%p) Surface already locked\n", This); /* What should I return here? */ - return D3DERR_INVALIDCALL; + return WINED3DERR_INVALIDCALL; } if (!(This->Flags & SFLAG_LOCKABLE)) @@ -217,7 +217,7 @@ IWineGDISurfaceImpl_LockRect(IWineD3DSurface *iface, (pRect->bottom > This->currentDesc.Height)) { WARN(" Invalid values in pRect !!!\n"); - return D3DERR_INVALIDCALL; + return WINED3DERR_INVALIDCALL; } if (This->resource.format == WINED3DFMT_DXT1) @@ -1377,7 +1377,7 @@ HRESULT WINAPI IWineGDISurfaceImpl_LoadTexture(IWineD3DSurface *iface) { ERR("Unsupported on X11 surfaces\n"); - return D3DERR_INVALIDCALL; + return WINED3DERR_INVALIDCALL; } /*****************************************************************************
1
0
0
0
H. Verbeet : wined3d: Get rid of any remaining d3d9 stuff in stateblock.c.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: 1a07d3142c210610da01572d3ce45654a63bff20 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1a07d3142c210610da01572d3…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:32:19 2007 +0100 wined3d: Get rid of any remaining d3d9 stuff in stateblock.c. --- dlls/wined3d/stateblock.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index 6112f59..7622d8e 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -672,7 +672,7 @@ should really perform a delta so that only the changes get updated*/ } } - if (/*TODO: 'magic' statetype, replace with BOOL This->blockType == D3DSBT_RECORDED || */ This->blockType == D3DSBT_ALL || This->blockType == D3DSBT_PIXELSTATE) { + if (/*TODO: 'magic' statetype, replace with BOOL This->blockType == D3DSBT_RECORDED || */ This->blockType == WINED3DSBT_ALL || This->blockType == WINED3DSBT_PIXELSTATE) { /* Pixel Shader */ if (This->set.pixelShader && This->changed.pixelShader) { @@ -829,7 +829,7 @@ should really perform a delta so that only the changes get updated*/ stateblock_savedstates_copy(iface, &((IWineD3DDeviceImpl*)pDevice)->stateBlock->changed, &This->changed); ((IWineD3DDeviceImpl *)pDevice)->stateBlock->lowest_disabled_stage = MAX_TEXTURES - 1; for(j = 0; j < MAX_TEXTURES - 1; j++) { - if(((IWineD3DDeviceImpl *)pDevice)->stateBlock->textureState[j][D3DTSS_COLOROP] == WINED3DTOP_DISABLE) { + if(((IWineD3DDeviceImpl *)pDevice)->stateBlock->textureState[j][WINED3DTSS_COLOROP] == WINED3DTOP_DISABLE) { ((IWineD3DDeviceImpl *)pDevice)->stateBlock->lowest_disabled_stage = j; break; }
1
0
0
0
H. Verbeet : wined3d: Get rid of any remaining d3d9 stuff in state.c.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: a2fde7d9123b7432a8ce71c591a583f4198c3035 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a2fde7d9123b7432a8ce71c59…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:32:13 2007 +0100 wined3d: Get rid of any remaining d3d9 stuff in state.c. --- dlls/wined3d/state.c | 68 +++++++++++++++++++++++++------------------------- 1 files changed, 34 insertions(+), 34 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=a2fde7d9123b7432a8ce7…
1
0
0
0
H. Verbeet : wined3d: Use WINED3DISSUE_BEGIN / WINED3DISSUE_END rather than D3DISSUE_BEGIN / D3DISSUE_END.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: 618dc7da1f6412e6864ce0d89d84c079dde66e87 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=618dc7da1f6412e6864ce0d89…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:32:06 2007 +0100 wined3d: Use WINED3DISSUE_BEGIN / WINED3DISSUE_END rather than D3DISSUE_BEGIN / D3DISSUE_END. --- dlls/wined3d/query.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index 9dafb12..41bebf6 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -354,11 +354,11 @@ static HRESULT WINAPI IWineD3DQueryImpl_Issue(IWineD3DQuery* iface, DWORD dwIs switch (This->type) { case WINED3DQUERYTYPE_OCCLUSION: if (GL_SUPPORT(ARB_OCCLUSION_QUERY)) { - if (dwIssueFlags & D3DISSUE_BEGIN) { + if (dwIssueFlags & WINED3DISSUE_BEGIN) { GL_EXTCALL(glBeginQueryARB(GL_SAMPLES_PASSED_ARB, ((WineQueryOcclusionData *)This->extendedData)->queryId)); checkGLcall("glBeginQuery()"); } - if (dwIssueFlags & D3DISSUE_END) { + if (dwIssueFlags & WINED3DISSUE_END) { GL_EXTCALL(glEndQueryARB(GL_SAMPLES_PASSED_ARB)); checkGLcall("glEndQuery()"); }
1
0
0
0
H. Verbeet : wined3d: Add the WINED3DSPD_IUNKNOWN flag and use it.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: e8419403eec00e5eb3f3e059080e39c326b51a92 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e8419403eec00e5eb3f3e0590…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:32:00 2007 +0100 wined3d: Add the WINED3DSPD_IUNKNOWN flag and use it. --- dlls/wined3d/resource.c | 8 ++++---- include/wine/wined3d_types.h | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c index b65f50c..a463d82 100644 --- a/dlls/wined3d/resource.c +++ b/dlls/wined3d/resource.c @@ -115,7 +115,7 @@ HRESULT WINAPI IWineD3DResourceImpl_SetPrivateData(IWineD3DResource *iface, REFG #if 0 (*data)->uniquenessValue = This->uniquenessValue; #endif - if (Flags & D3DSPD_IUNKNOWN) { + if (Flags & WINED3DSPD_IUNKNOWN) { (*data)->ptr.object = (LPUNKNOWN)pData; (*data)->size = sizeof(LPUNKNOWN); IUnknown_AddRef((*data)->ptr.object); @@ -157,7 +157,7 @@ HRESULT WINAPI IWineD3DResourceImpl_GetPrivateData(IWineD3DResource *iface, REFG #if 0 /* This may not be right. */ - if (((*data)->flags & D3DSPD_VOLATILE) + if (((*data)->flags & WINED3DSPD_VOLATILE) && (*data)->uniquenessValue != This->uniquenessValue) return DDERR_EXPIRED; #endif @@ -166,7 +166,7 @@ HRESULT WINAPI IWineD3DResourceImpl_GetPrivateData(IWineD3DResource *iface, REFG return WINED3DERR_MOREDATA; } - if ((*data)->flags & D3DSPD_IUNKNOWN) { + if ((*data)->flags & WINED3DSPD_IUNKNOWN) { *(LPUNKNOWN *)pData = (*data)->ptr.object; IUnknown_AddRef((*data)->ptr.object); } @@ -187,7 +187,7 @@ HRESULT WINAPI IWineD3DResourceImpl_FreePrivateData(IWineD3DResource *iface, REF *data = (*data)->next; - if ((*data)->flags & D3DSPD_IUNKNOWN) + if ((*data)->flags & WINED3DSPD_IUNKNOWN) { if ((*data)->ptr.object != NULL) IUnknown_Release((*data)->ptr.object); diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index 38622ae..1421ddf 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -1562,4 +1562,7 @@ typedef enum _WINED3DSURFTYPE { #define WINED3DSTREAMSOURCE_INDEXEDDATA (1 << 30) #define WINED3DSTREAMSOURCE_INSTANCEDATA (2 << 30) +/* SetPrivateData flags */ +#define WINED3DSPD_IUNKNOWN 0x00000001 + #endif
1
0
0
0
H. Verbeet : wined3d: Use WINED3DRTYPE_SURFACE rather than D3DRTYPE_SURFACE .
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: 176a2a19c3f1ce82e4b78fe490560c8b2bcdd1b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=176a2a19c3f1ce82e4b78fe49…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:31:54 2007 +0100 wined3d: Use WINED3DRTYPE_SURFACE rather than D3DRTYPE_SURFACE. --- dlls/wined3d/palette.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wined3d/palette.c b/dlls/wined3d/palette.c index 9f2900c..43c942f 100644 --- a/dlls/wined3d/palette.c +++ b/dlls/wined3d/palette.c @@ -135,7 +135,7 @@ static HRESULT WINAPI IWineD3DPaletteImpl_SetEntries(IWineD3DPalette *iface, DW /* If the palette is attached to the render target, update all render targets */ for(res = This->wineD3DDevice->resources; res != NULL; res=res->next) { - if(IWineD3DResource_GetType(res->resource) == D3DRTYPE_SURFACE) { + if(IWineD3DResource_GetType(res->resource) == WINED3DRTYPE_SURFACE) { IWineD3DSurfaceImpl *impl = (IWineD3DSurfaceImpl *) res->resource; if(impl->palette == This) IWineD3DSurface_RealizePalette( (IWineD3DSurface *) res->resource);
1
0
0
0
H. Verbeet : wined3d: Add WINED3DVS20 & WINED3DVS20CAPS flags and use them.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: e01f242a2af01a6e8c8e1000494e3f148a4a3d3c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e01f242a2af01a6e8c8e10004…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:31:47 2007 +0100 wined3d: Add WINED3DVS20 & WINED3DVS20CAPS flags and use them. --- dlls/wined3d/directx.c | 10 +++++----- include/wine/wined3d_caps.h | 9 +++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index d554ab4..e8043d0 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2300,16 +2300,16 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, if(*pCaps->VertexShaderVersion == WINED3DVS_VERSION(3,0)) { /* Where possible set the caps based on OpenGL extensions and if they aren't set (in case of software rendering) use the VS 3.0 from MSDN or else if there's OpenGL spec use a hardcoded value minimum VS3.0 value. */ - *pCaps->VS20Caps.Caps = D3DVS20CAPS_PREDICATION; - *pCaps->VS20Caps.DynamicFlowControlDepth = D3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH; /* VS 3.0 requires MAX_DYNAMICFLOWCONTROLDEPTH (24) */ + *pCaps->VS20Caps.Caps = WINED3DVS20CAPS_PREDICATION; + *pCaps->VS20Caps.DynamicFlowControlDepth = WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH; /* VS 3.0 requires MAX_DYNAMICFLOWCONTROLDEPTH (24) */ *pCaps->VS20Caps.NumTemps = max(32, This->gl_info.vs_arb_max_temps); - *pCaps->VS20Caps.StaticFlowControlDepth = D3DVS20_MAX_STATICFLOWCONTROLDEPTH ; /* level of nesting in loops / if-statements; VS 3.0 requires MAX (4) */ + *pCaps->VS20Caps.StaticFlowControlDepth = WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH ; /* level of nesting in loops / if-statements; VS 3.0 requires MAX (4) */ *pCaps->MaxVShaderInstructionsExecuted = 65535; /* VS 3.0 needs at least 65535, some cards even use 2^32-1 */ *pCaps->MaxVertexShader30InstructionSlots = max(512, This->gl_info.vs_arb_max_instructions); } else if(*pCaps->VertexShaderVersion == WINED3DVS_VERSION(2,0)) { *pCaps->VS20Caps.Caps = 0; - *pCaps->VS20Caps.DynamicFlowControlDepth = D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH; + *pCaps->VS20Caps.DynamicFlowControlDepth = WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH; *pCaps->VS20Caps.NumTemps = max(12, This->gl_info.vs_arb_max_temps); *pCaps->VS20Caps.StaticFlowControlDepth = 1; @@ -2345,7 +2345,7 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, } else if(*pCaps->PixelShaderVersion == WINED3DPS_VERSION(2,0)) { /* Below we assume PS2.0 specs, not extended 2.0a(GeforceFX)/2.0b(Radeon R3xx) ones */ *pCaps->PS20Caps.Caps = 0; - *pCaps->PS20Caps.DynamicFlowControlDepth = 0; /* D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0 */ + *pCaps->PS20Caps.DynamicFlowControlDepth = 0; /* WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0 */ *pCaps->PS20Caps.NumTemps = max(12, This->gl_info.ps_arb_max_temps); *pCaps->PS20Caps.StaticFlowControlDepth = WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH; /* Minumum: 1 */ *pCaps->PS20Caps.NumInstructionSlots = WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS; /* Minimum number (64 ALU + 32 Texture), a GeforceFX uses 512 */ diff --git a/include/wine/wined3d_caps.h b/include/wine/wined3d_caps.h index 2814457..78c2f1a 100644 --- a/include/wine/wined3d_caps.h +++ b/include/wine/wined3d_caps.h @@ -138,4 +138,13 @@ #define WINED3DTEXOPCAPS_MULTIPLYADD 0x01000000 #define WINED3DTEXOPCAPS_LERP 0x02000000 +#define WINED3DVS20_MAX_DYNAMICFLOWCONTROLDEPTH 24 +#define WINED3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH 0 +#define WINED3DVS20_MAX_NUMTEMPS 32 +#define WINED3DVS20_MIN_NUMTEMPS 12 +#define WINED3DVS20_MAX_STATICFLOWCONTROLDEPTH 4 +#define WINED3DVS20_MIN_STATICFLOWCONTROLDEPTH 1 + +#define WINED3DVS20CAPS_PREDICATION 0x00000001 + #endif /* __WINE_WINED3D_CAPS_H */
1
0
0
0
H. Verbeet : wined3d: Add WINED3DPS20 & WINED3DPS20CAPS flags and use them.
by Alexandre Julliard
15 Feb '07
15 Feb '07
Module: wine Branch: master Commit: 594f7fd8825756b8eda0fb60b2738f5fd3860d67 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=594f7fd8825756b8eda0fb60b…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Thu Feb 15 13:31:41 2007 +0100 wined3d: Add WINED3DPS20 & WINED3DPS20CAPS flags and use them. --- dlls/wined3d/directx.c | 20 ++++++++++---------- include/wine/wined3d_caps.h | 15 +++++++++++++++ 2 files changed, 25 insertions(+), 10 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 97b2f9d..d554ab4 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2330,15 +2330,15 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, use the PS 3.0 from MSDN or else if there's OpenGL spec use a hardcoded value minimum PS 3.0 value. */ /* Caps is more or less undocumented on MSDN but it appears to be used for PS20Caps based on results from R9600/FX5900/Geforce6800 cards from Windows */ - *pCaps->PS20Caps.Caps = D3DPS20CAPS_ARBITRARYSWIZZLE | - D3DPS20CAPS_GRADIENTINSTRUCTIONS | - D3DPS20CAPS_PREDICATION | - D3DPS20CAPS_NODEPENDENTREADLIMIT | - D3DPS20CAPS_NOTEXINSTRUCTIONLIMIT; - *pCaps->PS20Caps.DynamicFlowControlDepth = D3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH; /* PS 3.0 requires MAX_DYNAMICFLOWCONTROLDEPTH (24) */ + *pCaps->PS20Caps.Caps = WINED3DPS20CAPS_ARBITRARYSWIZZLE | + WINED3DPS20CAPS_GRADIENTINSTRUCTIONS | + WINED3DPS20CAPS_PREDICATION | + WINED3DPS20CAPS_NODEPENDENTREADLIMIT | + WINED3DPS20CAPS_NOTEXINSTRUCTIONLIMIT; + *pCaps->PS20Caps.DynamicFlowControlDepth = WINED3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH; /* PS 3.0 requires MAX_DYNAMICFLOWCONTROLDEPTH (24) */ *pCaps->PS20Caps.NumTemps = max(32, This->gl_info.ps_arb_max_temps); - *pCaps->PS20Caps.StaticFlowControlDepth = D3DPS20_MAX_STATICFLOWCONTROLDEPTH; /* PS 3.0 requires MAX_STATICFLOWCONTROLDEPTH (4) */ - *pCaps->PS20Caps.NumInstructionSlots = D3DPS20_MAX_NUMINSTRUCTIONSLOTS; /* PS 3.0 requires MAX_NUMINSTRUCTIONSLOTS (512) */ + *pCaps->PS20Caps.StaticFlowControlDepth = WINED3DPS20_MAX_STATICFLOWCONTROLDEPTH; /* PS 3.0 requires MAX_STATICFLOWCONTROLDEPTH (4) */ + *pCaps->PS20Caps.NumInstructionSlots = WINED3DPS20_MAX_NUMINSTRUCTIONSLOTS; /* PS 3.0 requires MAX_NUMINSTRUCTIONSLOTS (512) */ *pCaps->MaxPShaderInstructionsExecuted = 65535; *pCaps->MaxPixelShader30InstructionSlots = max(D3DMIN30SHADERINSTRUCTIONS, This->gl_info.ps_arb_max_instructions); @@ -2347,8 +2347,8 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, *pCaps->PS20Caps.Caps = 0; *pCaps->PS20Caps.DynamicFlowControlDepth = 0; /* D3DVS20_MIN_DYNAMICFLOWCONTROLDEPTH = 0 */ *pCaps->PS20Caps.NumTemps = max(12, This->gl_info.ps_arb_max_temps); - *pCaps->PS20Caps.StaticFlowControlDepth = D3DPS20_MIN_STATICFLOWCONTROLDEPTH; /* Minumum: 1 */ - *pCaps->PS20Caps.NumInstructionSlots = D3DPS20_MIN_NUMINSTRUCTIONSLOTS; /* Minimum number (64 ALU + 32 Texture), a GeforceFX uses 512 */ + *pCaps->PS20Caps.StaticFlowControlDepth = WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH; /* Minumum: 1 */ + *pCaps->PS20Caps.NumInstructionSlots = WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS; /* Minimum number (64 ALU + 32 Texture), a GeforceFX uses 512 */ *pCaps->MaxPShaderInstructionsExecuted = 512; /* Minimum value, a GeforceFX uses 1024 */ *pCaps->MaxPixelShader30InstructionSlots = 0; diff --git a/include/wine/wined3d_caps.h b/include/wine/wined3d_caps.h index 1a94b27..2814457 100644 --- a/include/wine/wined3d_caps.h +++ b/include/wine/wined3d_caps.h @@ -79,6 +79,21 @@ #define WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000 #define WINED3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000 +#define WINED3DPS20_MAX_DYNAMICFLOWCONTROLDEPTH 24 +#define WINED3DPS20_MIN_DYNAMICFLOWCONTROLDEPTH 0 +#define WINED3DPS20_MAX_NUMTEMPS 32 +#define WINED3DPS20_MIN_NUMTEMPS 12 +#define WINED3DPS20_MAX_STATICFLOWCONTROLDEPTH 4 +#define WINED3DPS20_MIN_STATICFLOWCONTROLDEPTH 0 +#define WINED3DPS20_MAX_NUMINSTRUCTIONSLOTS 512 +#define WINED3DPS20_MIN_NUMINSTRUCTIONSLOTS 96 + +#define WINED3DPS20CAPS_ARBITRARYSWIZZLE 0x00000001 +#define WINED3DPS20CAPS_GRADIENTINSTRUCTIONS 0x00000002 +#define WINED3DPS20CAPS_PREDICATION 0x00000004 +#define WINED3DPS20CAPS_NODEPENDENTREADLIMIT 0x00000008 +#define WINED3DPS20CAPS_NOTEXINSTRUCTIONLIMIT 0x00000010 + #define WINED3DPTADDRESSCAPS_WRAP 0x00000001 #define WINED3DPTADDRESSCAPS_MIRROR 0x00000002 #define WINED3DPTADDRESSCAPS_CLAMP 0x00000004
1
0
0
0
← Newer
1
...
36
37
38
39
40
41
42
...
84
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Results per page:
10
25
50
100
200