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
August 2006
----- 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
5 participants
746 discussions
Start a n
N
ew thread
James Hawkins : msi: Add tests for MsiGetProperty.
by Alexandre Julliard
08 Aug '06
08 Aug '06
Module: wine Branch: refs/heads/master Commit: 4fade6d3a85df6872d676d33fcee1a0666f8e73c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4fade6d3a85df6872d676d3…
Author: James Hawkins <truiken(a)gmail.com> Date: Mon Aug 7 10:49:18 2006 -0700 msi: Add tests for MsiGetProperty. --- dlls/msi/tests/package.c | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 679c45c..07b9296 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -1737,6 +1737,50 @@ static void test_states(void) MsiCloseHandle( hpkg ); } +static void test_getproperty(void) +{ + MSIHANDLE hPackage = 0; + char prop[100]; + DWORD size; + UINT r; + + hPackage = package_from_db(create_package_db()); + ok( hPackage != 0, " Failed to create package\n"); + + /* set the property */ + r = MsiSetProperty(hPackage, "Name", "Value"); + ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + + /* retrieve the size, NULL pointer */ + size = 0; + r = MsiGetProperty(hPackage, "Name", NULL, &size); + ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok( size == 5, "Expected 5, got %ld\n", size); + + /* retrieve the size, empty string */ + size = 0; + r = MsiGetProperty(hPackage, "Name", "", &size); + ok( r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r); + ok( size == 5, "Expected 5, got %ld\n", size); + + /* don't change size */ + r = MsiGetProperty(hPackage, "Name", prop, &size); + ok( r == ERROR_MORE_DATA, "Expected ERROR_MORE_DATA, got %d\n", r); + ok( size == 5, "Expected 5, got %ld\n", size); + ok( !lstrcmp(prop, "Valu"), "Expected Valu, got %s\n", prop); + + /* increase the size by 1 */ + size++; + r = MsiGetProperty(hPackage, "Name", prop, &size); + ok( r == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %d\n", r); + ok( size == 5, "Expected 5, got %ld\n", size); + ok( !lstrcmp(prop, "Value"), "Expected Value, got %s\n", prop); + + r = MsiCloseHandle( hPackage); + ok( r == ERROR_SUCCESS , "Failed to close package\n" ); + DeleteFile(msifile); +} + START_TEST(package) { test_createpackage(); @@ -1750,4 +1794,5 @@ START_TEST(package) test_msipackage(); test_formatrecord2(); test_states(); + test_getproperty(); }
1
0
0
0
Alexandre Julliard : configure: Fixed soname detection on MacOS by using otool instead of ldd.
by Alexandre Julliard
08 Aug '06
08 Aug '06
Module: wine Branch: refs/heads/master Commit: bdbffd97402a35d2149e52dcc80a7ac7a689e468 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=bdbffd97402a35d2149e52d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Aug 7 21:41:55 2006 +0200 configure: Fixed soname detection on MacOS by using otool instead of ldd. --- aclocal.m4 | 5 ++- configure | 105 ++++++++++++++++++++++++++++++++++++++++++++++++------------ 2 files changed, 88 insertions(+), 22 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=bdbffd97402a35d2149…
1
0
0
0
Kevin Koltzau : hid: Initial implementation.
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: b89cafaf92795b56c2a1be12c039c7def11b1ffb URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b89cafaf92795b56c2a1be1…
Author: Kevin Koltzau <kevin(a)plop.org> Date: Sat Aug 5 23:09:06 2006 -0400 hid: Initial implementation. --- configure | 3 ++- configure.ac | 1 + dlls/.gitignore | 1 + dlls/Makefile.in | 5 ++++ dlls/hid/Makefile.in | 16 ++++++++++++++ dlls/hid/hid.spec | 44 +++++++++++++++++++++++++++++++++++++++ dlls/hid/main.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++ dlls/hid/version.rc | 21 +++++++++++++++++++ 8 files changed, 146 insertions(+), 1 deletions(-) create mode 100644 dlls/hid/Makefile.in create mode 100644 dlls/hid/hid.spec create mode 100644 dlls/hid/main.c create mode 100644 dlls/hid/version.rc Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=b89cafaf92795b56c2a…
1
0
0
0
Ulrich Czekalla : wininet: Add INTERNET_OPTION_SECURITY_FLAGS stub to InternetSetOptionW.
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: f6c0a461ec46d3f5eef3e05cdc4b9424548500c9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f6c0a461ec46d3f5eef3e05…
Author: Ulrich Czekalla <ulrich(a)codeweavers.com> Date: Mon Aug 7 12:35:09 2006 -0400 wininet: Add INTERNET_OPTION_SECURITY_FLAGS stub to InternetSetOptionW. --- dlls/wininet/internet.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c index ebe209d..00fb434 100644 --- a/dlls/wininet/internet.c +++ b/dlls/wininet/internet.c @@ -2504,6 +2504,9 @@ BOOL WINAPI InternetSetOptionW(HINTERNET case INTERNET_OPTION_CONTEXT_VALUE: FIXME("Option INTERNET_OPTION_CONTEXT_VALUE; STUB\n"); break; + case INTERNET_OPTION_SECURITY_FLAGS: + FIXME("Option INTERNET_OPTION_SECURITY_FLAGS; STUB\n"); + break; default: FIXME("Option %ld STUB\n",dwOption); INTERNET_SetLastError(ERROR_INVALID_PARAMETER);
1
0
0
0
Krzysztof Foltman : riched20: New, clean, simple selection repaint logic - should fix all outstanding refresh issues .
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: bad844d0a90c6947f2365a1d1b259be56ebf5ca5 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=bad844d0a90c6947f2365a1…
Author: Krzysztof Foltman <wdev(a)foltman.com> Date: Mon Aug 7 17:27:16 2006 +0200 riched20: New, clean, simple selection repaint logic - should fix all outstanding refresh issues. --- dlls/riched20/caret.c | 26 ++++++++++++++------ dlls/riched20/editor.c | 3 ++ dlls/riched20/editor.h | 4 ++- dlls/riched20/editstr.h | 3 ++ dlls/riched20/paint.c | 62 +++++++++++++++++++++++++++++------------------ dlls/riched20/para.c | 14 +++++++++++ dlls/riched20/undo.c | 1 - dlls/riched20/wrap.c | 51 ++++++++++++++++++++++----------------- 8 files changed, 106 insertions(+), 58 deletions(-) Diff:
http://source.winehq.org/git/?p=wine.git;a=commitdiff;h=bad844d0a90c6947f23…
1
0
0
0
H. Verbeet : d3d9: Stub D3DPERF_ functions.
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: 6128a05071cac044b623a88b6cf02947c5d051e1 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6128a05071cac044b623a88…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Mon Aug 7 19:23:11 2006 +0200 d3d9: Stub D3DPERF_ functions. --- dlls/d3d9/d3d9.spec | 6 ++++++ dlls/d3d9/d3d9_main.c | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 0 deletions(-) diff --git a/dlls/d3d9/d3d9.spec b/dlls/d3d9/d3d9.spec index 0e6e5d2..949f03f 100644 --- a/dlls/d3d9/d3d9.spec +++ b/dlls/d3d9/d3d9.spec @@ -1,4 +1,10 @@ @ stdcall D3D9GetSWInfo() @ stdcall DebugSetMute() @ stdcall Direct3DCreate9(long) +@ stdcall D3DPERF_BeginEvent(long wstr) +@ stdcall D3DPERF_EndEvent() +@ stdcall D3DPERF_GetStatus() @ stdcall D3DPERF_SetOptions(long) +@ stdcall D3DPERF_QueryRepeatFrame() +@ stdcall D3DPERF_SetMarker(long wstr) +@ stdcall D3DPERF_SetRegion(long wstr) diff --git a/dlls/d3d9/d3d9_main.c b/dlls/d3d9/d3d9_main.c index b64f50e..b9bff60 100644 --- a/dlls/d3d9/d3d9_main.c +++ b/dlls/d3d9/d3d9_main.c @@ -27,6 +27,8 @@ #include "d3d9_private.h" WINE_DEFAULT_DEBUG_CHANNEL(d3d9); +static int D3DPERF_event_level = 0; + void (*wine_tsx11_lock_ptr)(void) = NULL; void (*wine_tsx11_unlock_ptr)(void) = NULL; @@ -71,6 +73,33 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, } /*********************************************************************** + * D3DPERF_BeginEvent (D3D9.@) + */ +int WINAPI D3DPERF_BeginEvent(D3DCOLOR color, LPCWSTR name) { + FIXME("(color %#lx, name %s) : stub\n", color, debugstr_w(name)); + + return D3DPERF_event_level++; +} + +/*********************************************************************** + * D3DPERF_EndEvent (D3D9.@) + */ +int WINAPI D3DPERF_EndEvent(void) { + FIXME("(void) : stub\n"); + + return --D3DPERF_event_level; +} + +/*********************************************************************** + * D3DPERF_GetStatus (D3D9.@) + */ +DWORD WINAPI D3DPERF_GetStatus(void) { + FIXME("(void) : stub\n"); + + return 0; +} + +/*********************************************************************** * D3DPERF_SetOptions (D3D9.@) * */ @@ -78,3 +107,26 @@ void WINAPI D3DPERF_SetOptions(DWORD opt { FIXME("(%#lx) : stub\n", options); } + +/*********************************************************************** + * D3DPERF_QueryRepeatFrame (D3D9.@) + */ +BOOL WINAPI D3DPERF_QueryRepeatFrame(void) { + FIXME("(void) : stub\n"); + + return FALSE; +} + +/*********************************************************************** + * D3DPERF_SetMarker (D3D9.@) + */ +void WINAPI D3DPERF_SetMarker(D3DCOLOR color, LPCWSTR name) { + FIXME("(color %#lx, name %s) : stub\n", color, debugstr_w(name)); +} + +/*********************************************************************** + * D3DPERF_SetRegion (D3D9.@) + */ +void WINAPI D3DPERF_SetRegion(D3DCOLOR color, LPCWSTR name) { + FIXME("(color %#lx, name %s) : stub\n", color, debugstr_w(name)); +}
1
0
0
0
H. Verbeet : wined3d: Allow async occlusion queries.
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: 3d2ae6910264280695c90570dd1d73fa308db1bf URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=3d2ae6910264280695c9057…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Mon Aug 7 19:25:17 2006 +0200 wined3d: Allow async occlusion queries. --- dlls/wined3d/query.c | 26 ++++++++++++++++++++------ include/wine/wined3d_gl.h | 1 + 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index a4f0b9d..0d11369 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -94,6 +94,7 @@ static HRESULT WINAPI IWineD3DQueryImpl static HRESULT WINAPI IWineD3DQueryImpl_GetData(IWineD3DQuery* iface, void* pData, DWORD dwSize, DWORD dwGetDataFlags){ IWineD3DQueryImpl *This = (IWineD3DQueryImpl *)iface; + HRESULT res = S_OK; TRACE("(%p) : type %#x, pData %p, dwSize %#lx, dwGetDataFlags %#lx\n", This, This->type, pData, dwSize, dwGetDataFlags); @@ -157,14 +158,27 @@ static HRESULT WINAPI IWineD3DQueryImpl { DWORD* data = pData; if (GL_SUPPORT(ARB_OCCLUSION_QUERY)) { - GLint samples; - GL_EXTCALL(glGetQueryObjectivARB(((WineQueryOcclusionData *)This->extendedData)->queryId, GL_QUERY_RESULT_ARB, &samples)); - checkGLcall("glGetQueryObjectiv()\n"); - TRACE("(%p) : Returning %d samples.\n", This, samples); - *data = samples; + GLuint available; + GLuint samples; + GLuint queryId = ((WineQueryOcclusionData *)This->extendedData)->queryId; + + GL_EXTCALL(glGetQueryObjectuivARB(queryId, GL_QUERY_RESULT_AVAILABLE_ARB, &available)); + checkGLcall("glGetQueryObjectiv(GL_QUERY_RESULT_AVAILABLE)\n"); + TRACE("(%p) : available %d.\n", This, available); + + if (available || dwGetDataFlags & WINED3DGETDATA_FLUSH) { + GL_EXTCALL(glGetQueryObjectuivARB(queryId, GL_QUERY_RESULT_ARB, &samples)); + checkGLcall("glGetQueryObjectuiv(GL_QUERY_RESULT)\n"); + TRACE("(%p) : Returning %d samples.\n", This, samples); + *data = samples; + res = S_OK; + } else { + res = S_FALSE; + } } else { FIXME("(%p) : Occlusion queries not supported. Returning 1.\n", This); *data = 1; + res = S_OK; } } break; @@ -252,7 +266,7 @@ static HRESULT WINAPI IWineD3DQueryImpl D3DGETDATA_FLUSH may return WINED3DERR_DEVICELOST if the device is lost */ FIXME("(%p) : type %#x, Partial stub\n", This, This->type); - return S_OK; /* S_OK if the query data is available*/ + return res; /* S_OK if the query data is available*/ } diff --git a/include/wine/wined3d_gl.h b/include/wine/wined3d_gl.h index 5af463e..d50be65 100644 --- a/include/wine/wined3d_gl.h +++ b/include/wine/wined3d_gl.h @@ -1439,6 +1439,7 @@ #define GL_EXT_FUNCS_GEN \ USE_GL_FUNC(PGLFNBEGINQUERYARBPROC, glBeginQueryARB); \ USE_GL_FUNC(PGLFNENDQUERYARBPROC, glEndQueryARB); \ USE_GL_FUNC(PGLFNGETQUERYOBJECTIVARBPROC, glGetQueryObjectivARB); \ + USE_GL_FUNC(PGLFNGETQUERYOBJECTUIVARBPROC, glGetQueryObjectuivARB); \ /* GL_ARB_point_parameters */ \ USE_GL_FUNC(PGLFNGLPOINTPARAMETERFARBPROC, glPointParameterfARB); \ USE_GL_FUNC(PGLFNGLPOINTPARAMETERFVARBPROC, glPointParameterfvARB); \
1
0
0
0
H. Verbeet : wined3d: Improve a few query traces.
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: 008c23d06a5426555f0fe9ee6f8661983a166ee3 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=008c23d06a5426555f0fe9e…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Mon Aug 7 19:23:49 2006 +0200 wined3d: Improve a few query traces. The query type is useful to have in query TRACEs. IWineD3DQueryImpl_GetDataSize isn't really a stub. --- 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 93d595b..a4f0b9d 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -251,7 +251,7 @@ static HRESULT WINAPI IWineD3DQueryImpl /*dwGetDataFlags = 0 || D3DGETDATA_FLUSH D3DGETDATA_FLUSH may return WINED3DERR_DEVICELOST if the device is lost */ - FIXME("(%p) : stub\n", This); + FIXME("(%p) : type %#x, Partial stub\n", This, This->type); return S_OK; /* S_OK if the query data is available*/ } @@ -259,7 +259,7 @@ static HRESULT WINAPI IWineD3DQueryImpl static DWORD WINAPI IWineD3DQueryImpl_GetDataSize(IWineD3DQuery* iface){ IWineD3DQueryImpl *This = (IWineD3DQueryImpl *)iface; int dataSize = 0; - FIXME("(%p) : stub\n", This); + TRACE("(%p) : type %#x\n", This, This->type); switch(This->type){ case WINED3DQUERYTYPE_VCACHE: dataSize = sizeof(WINED3DDEVINFO_VCACHE);
1
0
0
0
H. Verbeet : wined3d: Check Occlusion query GL calls.
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: 44c1747f71c58526041a9c3ea64b3daf4008ded4 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=44c1747f71c58526041a9c3…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Mon Aug 7 19:23:27 2006 +0200 wined3d: Check Occlusion query GL calls. --- dlls/wined3d/query.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c index 026a23a..93d595b 100644 --- a/dlls/wined3d/query.c +++ b/dlls/wined3d/query.c @@ -159,6 +159,7 @@ static HRESULT WINAPI IWineD3DQueryImpl if (GL_SUPPORT(ARB_OCCLUSION_QUERY)) { GLint samples; GL_EXTCALL(glGetQueryObjectivARB(((WineQueryOcclusionData *)This->extendedData)->queryId, GL_QUERY_RESULT_ARB, &samples)); + checkGLcall("glGetQueryObjectiv()\n"); TRACE("(%p) : Returning %d samples.\n", This, samples); *data = samples; } else { @@ -326,9 +327,11 @@ static HRESULT WINAPI IWineD3DQueryImpl if (GL_SUPPORT(ARB_OCCLUSION_QUERY)) { if (dwIssueFlags & D3DISSUE_BEGIN) { GL_EXTCALL(glBeginQueryARB(GL_SAMPLES_PASSED_ARB, ((WineQueryOcclusionData *)This->extendedData)->queryId)); + checkGLcall("glBeginQuery()"); } if (dwIssueFlags & D3DISSUE_END) { GL_EXTCALL(glEndQueryARB(GL_SAMPLES_PASSED_ARB)); + checkGLcall("glEndQuery()"); } } else { FIXME("(%p) : Occlusion queries not supported\n", This);
1
0
0
0
H. Verbeet : wined3d: Add a couple of traces to the vertexdeclaration creation code.
by Alexandre Julliard
07 Aug '06
07 Aug '06
Module: wine Branch: refs/heads/master Commit: 02a8f74490cc0d765f828faa8d5972645bd218fc URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=02a8f74490cc0d765f828fa…
Author: H. Verbeet <hverbeet(a)gmail.com> Date: Mon Aug 7 19:21:54 2006 +0200 wined3d: Add a couple of traces to the vertexdeclaration creation code. --- dlls/wined3d/utils.c | 46 ++++++++++++++++++++++++++++++++++++++ dlls/wined3d/vertexdeclaration.c | 14 ++++++++++++ dlls/wined3d/wined3d_private.h | 2 ++ include/wine/wined3d_types.h | 10 ++++++++ 4 files changed, 72 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index fc9edf6..debd8a3 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -269,6 +269,51 @@ #undef WINED3DUSAGEQUERY_TO_STR } } +const char* debug_d3ddeclmethod(WINED3DDECLMETHOD method) { + switch (method) { +#define WINED3DDECLMETHOD_TO_STR(u) case u: return #u + WINED3DDECLMETHOD_TO_STR(WINED3DDECLMETHOD_DEFAULT); + WINED3DDECLMETHOD_TO_STR(WINED3DDECLMETHOD_PARTIALU); + WINED3DDECLMETHOD_TO_STR(WINED3DDECLMETHOD_PARTIALV); + WINED3DDECLMETHOD_TO_STR(WINED3DDECLMETHOD_CROSSUV); + WINED3DDECLMETHOD_TO_STR(WINED3DDECLMETHOD_UV); + WINED3DDECLMETHOD_TO_STR(WINED3DDECLMETHOD_LOOKUP); + WINED3DDECLMETHOD_TO_STR(WINED3DDECLMETHOD_LOOKUPPRESAMPLED); +#undef WINED3DDECLMETHOD_TO_STR + default: + FIXME("Unrecognized %u declaration method!\n", method); + return "unrecognized"; + } +} + +const char* debug_d3ddecltype(WINED3DDECLTYPE type) { + switch (type) { +#define WINED3DDECLTYPE_TO_STR(u) case u: return #u + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_FLOAT1); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_FLOAT2); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_FLOAT3); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_FLOAT4); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_D3DCOLOR); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_UBYTE4); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_SHORT2); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_SHORT4); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_UBYTE4N); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_SHORT2N); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_SHORT4N); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_USHORT2N); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_USHORT4N); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_UDEC3); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_DEC3N); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_FLOAT16_2); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_FLOAT16_4); + WINED3DDECLTYPE_TO_STR(WINED3DDECLTYPE_UNUSED); +#undef WINED3DDECLTYPE_TO_STR + default: + FIXME("Unrecognized %u declaration type!\n", type); + return "unrecognized"; + } +} + const char* debug_d3ddeclusage(BYTE usage) { switch (usage) { #define WINED3DDECLUSAGE_TO_STR(u) case u: return #u @@ -600,6 +645,7 @@ #undef POOL_TO_STR return "unrecognized"; } } + /***************************************************************************** * Useful functions mapping GL <-> D3D values */ diff --git a/dlls/wined3d/vertexdeclaration.c b/dlls/wined3d/vertexdeclaration.c index 8045745..eeacb31 100644 --- a/dlls/wined3d/vertexdeclaration.c +++ b/dlls/wined3d/vertexdeclaration.c @@ -170,6 +170,16 @@ #define D3DVSD_TOKENTYPEMASK (0x7 #define D3DVSD_END() 0xFFFFFFFF #define D3DVSD_NOP() 0x00000000 +static void dump_wined3dvertexelement(const WINED3DVERTEXELEMENT *element) { + TRACE(" Stream: %d\n", element->Stream); + TRACE(" Offset: %d\n", element->Offset); + TRACE(" Type: %s (%#x)\n", debug_d3ddecltype(element->Type), element->Type); + TRACE(" Method: %s (%#x)\n", debug_d3ddeclmethod(element->Method), element->Method); + TRACE(" Usage: %s (%#x)\n", debug_d3ddeclusage(element->Usage), element->Usage); + TRACE("Usage index: %d\n", element->UsageIndex); + TRACE(" Register: %d\n", element->Reg); +} + static DWORD IWineD3DVertexDeclarationImpl_ParseToken8(const DWORD* pToken) { const DWORD token = *pToken; DWORD tokenlen = 1; @@ -298,6 +308,8 @@ #define MAKE_LOOKUP(_reg,_usage,_usagein convToW[nTokens].Type = type; convToW[nTokens].Offset = offset; convToW[nTokens].Reg = reg; + TRACE("Adding element %ld:\n", nTokens); + dump_wined3dvertexelement(&convToW[nTokens]); offset += glTypeLookup[type].size * glTypeLookup[type].typesize; ++nTokens; } else if (D3DVSD_TOKEN_STREAMDATA == tokentype && 0x10000000 & tokentype ) { @@ -386,6 +398,8 @@ static HRESULT IWineD3DVertexDeclaration for(i = 0; i < This->declaration9NumElements; ++i) { memcpy(This->pDeclarationWine + i, This->pDeclaration9 + i, sizeof(D3DVERTEXELEMENT9)); This->pDeclarationWine[i].Reg = -1; + TRACE("Adding element %d:\n", i); + dump_wined3dvertexelement(&This->pDeclarationWine[i]); } This->declarationWNumElements = This->declaration9NumElements; diff --git a/dlls/wined3d/wined3d_private.h b/dlls/wined3d/wined3d_private.h index 7ef8877..a87439b 100644 --- a/dlls/wined3d/wined3d_private.h +++ b/dlls/wined3d/wined3d_private.h @@ -1216,6 +1216,8 @@ const char* debug_d3ddevicetype(D3DDEVTY const char* debug_d3dresourcetype(WINED3DRESOURCETYPE res); const char* debug_d3dusage(DWORD usage); const char* debug_d3dusagequery(DWORD usagequery); +const char* debug_d3ddeclmethod(WINED3DDECLMETHOD method); +const char* debug_d3ddecltype(WINED3DDECLTYPE type); const char* debug_d3ddeclusage(BYTE usage); const char* debug_d3dprimitivetype(D3DPRIMITIVETYPE PrimitiveType); const char* debug_d3drenderstate(DWORD state); diff --git a/include/wine/wined3d_types.h b/include/wine/wined3d_types.h index 5538563..a82f094 100644 --- a/include/wine/wined3d_types.h +++ b/include/wine/wined3d_types.h @@ -893,6 +893,16 @@ typedef struct glDescriptor { int/*GLenum*/ glType; } glDescriptor; +typedef enum _WINED3DDECLMETHOD { + WINED3DDECLMETHOD_DEFAULT = 0, + WINED3DDECLMETHOD_PARTIALU = 1, + WINED3DDECLMETHOD_PARTIALV = 2, + WINED3DDECLMETHOD_CROSSUV = 3, + WINED3DDECLMETHOD_UV = 4, + WINED3DDECLMETHOD_LOOKUP = 5, + WINED3DDECLMETHOD_LOOKUPPRESAMPLED = 6 +} WINED3DDECLMETHOD; + typedef enum _WINED3DDECLTYPE { WINED3DDECLTYPE_FLOAT1 = 0, WINED3DDECLTYPE_FLOAT2 = 1,
1
0
0
0
← Newer
1
...
55
56
57
58
59
60
61
...
75
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
Results per page:
10
25
50
100
200