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 2011
----- 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
2 participants
770 discussions
Start a n
N
ew thread
Stefan Leichter : setupapi: Add pSetupFree|Malloc|Realloc to spec file and forward them.
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: cb9fa1eb7aeb3d5d7e715aeee6e42200091a0d33 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cb9fa1eb7aeb3d5d7e715aeee…
Author: Stefan Leichter <Stefan.Leichter(a)camline.com> Date: Thu Aug 25 23:06:20 2011 +0200 setupapi: Add pSetupFree|Malloc|Realloc to spec file and forward them. --- dlls/setupapi/setupapi.spec | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/setupapi/setupapi.spec b/dlls/setupapi/setupapi.spec index 9ad5a96..7202874 100644 --- a/dlls/setupapi/setupapi.spec +++ b/dlls/setupapi/setupapi.spec @@ -557,6 +557,7 @@ @ stub pSetupAppendStringToMultiSz @ stub pSetupDestroyRunOnceNodeList @ stub pSetupDirectoryIdToPath +@ stdcall pSetupFree(ptr) MyFree @ stdcall pSetupGetField(ptr long) @ stdcall pSetupGetGlobalFlags() @ stub pSetupGetOsLoaderDriveAndPath @@ -567,6 +568,8 @@ @ stdcall pSetupInstallCatalog(wstr wstr ptr) @ stdcall pSetupIsUserAdmin() IsUserAdmin @ stub pSetupMakeSurePathExists +@ stdcall pSetupMalloc(long) MyMalloc +@ stdcall pSetupRealloc(ptr long) MyRealloc @ stdcall pSetupSetGlobalFlags(long) @ stdcall pSetupSetQueueFlags(ptr long) @ stub pSetupSetSystemSourceFlags
1
0
0
0
Henri Verbeet : wined3d: Enable multisampling by default.
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: 8a2b435dd354cd4eac7a7286dfb8b08c539dbab8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8a2b435dd354cd4eac7a7286d…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:05:04 2011 +0200 wined3d: Enable multisampling by default. --- dlls/wined3d/wined3d_main.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index da6aa2a..282f52d 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -84,7 +84,7 @@ struct wined3d_settings wined3d_settings = PCI_DEVICE_NONE,/* PCI Device ID */ 0, /* The default of memory is set in init_driver_info */ NULL, /* No wine logo by default */ - FALSE, /* Multisampling disabled by default. */ + TRUE, /* Multisampling enabled by default. */ FALSE, /* No strict draw ordering. */ FALSE, /* Try to render onscreen by default. */ }; @@ -329,10 +329,10 @@ static BOOL wined3d_dll_init(HINSTANCE hInstDLL) } if ( !get_config_key( hkey, appkey, "Multisampling", buffer, size) ) { - if (!strcmp(buffer,"enabled")) + if (!strcmp(buffer, "disabled")) { - TRACE("Allow multisampling\n"); - wined3d_settings.allow_multisampling = TRUE; + TRACE("Multisampling disabled.\n"); + wined3d_settings.allow_multisampling = FALSE; } } if (!get_config_key(hkey, appkey, "StrictDrawOrdering", buffer, size)
1
0
0
0
Henri Verbeet : wined3d: Add multisampling support.
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: 641f52ef96946112b35456d07e8c0cdbd3cd48bf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=641f52ef96946112b35456d07…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:05:03 2011 +0200 wined3d: Add multisampling support. --- dlls/wined3d/context.c | 34 +++++++++++++- dlls/wined3d/device.c | 26 +++++++++-- dlls/wined3d/directx.c | 36 +++++++++++++-- dlls/wined3d/surface.c | 92 ++++++++++++++++++++++++++++++++++++++- dlls/wined3d/swapchain.c | 15 ++++++- dlls/wined3d/utils.c | 10 +++-- dlls/wined3d/wined3d_private.h | 79 +++++++++++++++++++--------------- 7 files changed, 235 insertions(+), 57 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=641f52ef96946112b3545…
1
0
0
0
Henri Verbeet : wined3d: Get rid of the current multisampling support.
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: bd5f9486829bfdcf9a77c7a4ca6e38dd1b2ffb97 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bd5f9486829bfdcf9a77c7a4c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:05:02 2011 +0200 wined3d: Get rid of the current multisampling support. It doesn't really work, and trying to make multisampling work with onscreen rendering is probably more trouble than it's worth, both for us and the driver. --- dlls/wined3d/context.c | 29 ++++------------ dlls/wined3d/directx.c | 78 ------------------------------------------- dlls/wined3d/wined3d_main.c | 2 +- 3 files changed, 8 insertions(+), 101 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index a5f5861..b1c2f50 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -1066,7 +1066,7 @@ void context_invalidate_state(struct wined3d_context *context, DWORD state) /* This function takes care of wined3d pixel format selection. */ static int context_choose_pixel_format(struct wined3d_device *device, HDC hdc, const struct wined3d_format *color_format, const struct wined3d_format *ds_format, - BOOL auxBuffers, int numSamples, BOOL findCompatible) + BOOL auxBuffers, BOOL findCompatible) { int iPixelFormat=0; unsigned int matchtry; @@ -1099,9 +1099,9 @@ static int context_choose_pixel_format(struct wined3d_device *device, HDC hdc, int i = 0; int nCfgs = device->adapter->nCfgs; - TRACE("ColorFormat=%s, DepthStencilFormat=%s, auxBuffers=%d, numSamples=%d, findCompatible=%d\n", - debug_d3dformat(color_format->id), debug_d3dformat(ds_format->id), - auxBuffers, numSamples, findCompatible); + TRACE("device %p, dc %p, color_format %s, ds_format %s, aux_buffers %#x, find_compatible %#x.\n", + device, hdc, debug_d3dformat(color_format->id), debug_d3dformat(ds_format->id), + auxBuffers, findCompatible); if (!getColorBits(color_format, &redBits, &greenBits, &blueBits, &alphaBits, &colorBits)) { @@ -1171,7 +1171,7 @@ static int context_choose_pixel_format(struct wined3d_device *device, HDC hdc, continue; /* Check multisampling support */ - if(cfg->numSamples != numSamples) + if (cfg->numSamples) continue; /* When we have passed all the checks then we have found a format which matches our @@ -1236,7 +1236,6 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain, struct wined3d_context *ret; PIXELFORMATDESCRIPTOR pfd; BOOL auxBuffers = FALSE; - int numSamples = 0; int pixel_format; unsigned int s; int swap_interval; @@ -1287,28 +1286,14 @@ struct wined3d_context *context_create(struct wined3d_swapchain *swapchain, if (color_format->id == WINED3DFMT_P8_UINT) color_format = wined3d_get_format(gl_info, WINED3DFMT_B8G8R8A8_UNORM); - /* D3D only allows multisampling when SwapEffect is set to WINED3DSWAPEFFECT_DISCARD. */ - if (swapchain->presentParms.MultiSampleType && (swapchain->presentParms.SwapEffect == WINED3DSWAPEFFECT_DISCARD)) - { - if (!gl_info->supported[ARB_MULTISAMPLE]) - WARN("The application is requesting multisampling without support.\n"); - else - { - TRACE("Requesting multisample type %#x.\n", swapchain->presentParms.MultiSampleType); - numSamples = swapchain->presentParms.MultiSampleType; - } - } - /* Try to find a pixel format which matches our requirements. */ - pixel_format = context_choose_pixel_format(device, hdc, color_format, ds_format, - auxBuffers, numSamples, FALSE /* findCompatible */); + pixel_format = context_choose_pixel_format(device, hdc, color_format, ds_format, auxBuffers, FALSE); /* Try to locate a compatible format if we weren't able to find anything. */ if (!pixel_format) { TRACE("Trying to locate a compatible pixel format because an exact match failed.\n"); - pixel_format = context_choose_pixel_format(device, hdc, color_format, ds_format, - auxBuffers, 0 /* numSamples */, TRUE /* findCompatible */); + pixel_format = context_choose_pixel_format(device, hdc, color_format, ds_format, auxBuffers, TRUE); } /* If we still don't have a pixel format, something is very wrong as ChoosePixelFormat barely fails */ diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index a43dc9f..5887000 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -3127,9 +3127,6 @@ HRESULT CDECL wined3d_check_device_multisample_type(const struct wined3d *wined3 WINED3DDEVTYPE device_type, enum wined3d_format_id surface_format_id, BOOL windowed, WINED3DMULTISAMPLE_TYPE multisample_type, DWORD *quality_levels) { - const struct wined3d_adapter *adapter; - const struct wined3d_format *format; - TRACE_(d3d_caps)("wined3d %p, adapter_idx %u, device_type %s, surface_format %s,\n" "windowed %#x, multisample_type %#x, quality_levels %p.\n", wined3d, adapter_idx, debug_d3ddevicetype(device_type), debug_d3dformat(surface_format_id), @@ -3138,87 +3135,12 @@ HRESULT CDECL wined3d_check_device_multisample_type(const struct wined3d *wined3 if (adapter_idx >= wined3d->adapter_count) return WINED3DERR_INVALIDCALL; - /* TODO: Handle windowed, add more quality levels. */ - if (WINED3DMULTISAMPLE_NONE == multisample_type) { if (quality_levels) *quality_levels = 1; return WINED3D_OK; } - /* By default multisampling is disabled right now as it causes issues - * on some Nvidia driver versions and it doesn't work well in combination - * with FBOs yet. */ - if (!wined3d_settings.allow_multisampling) - return WINED3DERR_NOTAVAILABLE; - - adapter = &wined3d->adapters[adapter_idx]; - format = wined3d_get_format(&adapter->gl_info, surface_format_id); - if (!format) return WINED3DERR_INVALIDCALL; - - if (format->flags & (WINED3DFMT_FLAG_DEPTH | WINED3DFMT_FLAG_STENCIL)) - { - const struct wined3d_pixel_format *cfgs; - unsigned int i, cfg_count; - - cfgs = adapter->cfgs; - cfg_count = adapter->nCfgs; - for (i = 0; i < cfg_count; ++i) - { - if(cfgs[i].numSamples != multisample_type) - continue; - - if (!wined3d_check_pixel_format_depth(&adapter->gl_info, &cfgs[i], format)) - continue; - - TRACE("Found pixel format %u to support multisample_type %#x for format %s.\n", - cfgs[i].iPixelFormat, multisample_type, debug_d3dformat(surface_format_id)); - - if (quality_levels) *quality_levels = 1; - - return WINED3D_OK; - } - } - else if (format->flags & WINED3DFMT_FLAG_RENDERTARGET) - { - BYTE redSize, greenSize, blueSize, alphaSize, colorBits; - const struct wined3d_pixel_format *cfgs; - unsigned int i, cfg_count; - - if (!getColorBits(format, &redSize, &greenSize, &blueSize, &alphaSize, &colorBits)) - { - ERR("Unable to get color bits for format %s, can't check multisampling capability.\n", - debug_d3dformat(surface_format_id)); - return WINED3DERR_NOTAVAILABLE; - } - - cfgs = adapter->cfgs; - cfg_count = adapter->nCfgs; - for (i = 0; i < cfg_count; ++i) - { - if(cfgs[i].numSamples != multisample_type) - continue; - if(cfgs[i].redSize != redSize) - continue; - if(cfgs[i].greenSize != greenSize) - continue; - if(cfgs[i].blueSize != blueSize) - continue; - /* Not all drivers report alpha-less formats since they use 32-bit - * anyway, so accept alpha even if we didn't ask for it. */ - if(alphaSize && cfgs[i].alphaSize != alphaSize) - continue; - if (cfgs[i].colorSize != (format->byte_count << 3)) - continue; - - TRACE("Found pixel format %u to support multisample_type %#x for format %s.\n", - cfgs[i].iPixelFormat, multisample_type, debug_d3dformat(surface_format_id)); - - if (quality_levels) *quality_levels = 1; - - return WINED3D_OK; - } - } return WINED3DERR_NOTAVAILABLE; } diff --git a/dlls/wined3d/wined3d_main.c b/dlls/wined3d/wined3d_main.c index 06af5b1..da6aa2a 100644 --- a/dlls/wined3d/wined3d_main.c +++ b/dlls/wined3d/wined3d_main.c @@ -84,7 +84,7 @@ struct wined3d_settings wined3d_settings = PCI_DEVICE_NONE,/* PCI Device ID */ 0, /* The default of memory is set in init_driver_info */ NULL, /* No wine logo by default */ - FALSE, /* Disable multisampling for now due to Nvidia driver bugs which happens for some users */ + FALSE, /* Multisampling disabled by default. */ FALSE, /* No strict draw ordering. */ FALSE, /* Try to render onscreen by default. */ };
1
0
0
0
Henri Verbeet : wined3d: Introduce a separate function for attaching depth / stencil renderbuffers.
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: eec2c634a6ba9f605dcfb4dab0b80e975bdde25c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eec2c634a6ba9f605dcfb4dab…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:05:01 2011 +0200 wined3d: Introduce a separate function for attaching depth / stencil renderbuffers. --- dlls/wined3d/context.c | 31 ++++++++++++++++++------------- 1 files changed, 18 insertions(+), 13 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index b4788bd..a5f5861 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -111,6 +111,22 @@ static void context_destroy_fbo(struct wined3d_context *context, GLuint *fbo) checkGLcall("glDeleteFramebuffers()"); } +static void context_attach_depth_stencil_rb(const struct wined3d_gl_info *gl_info, + GLenum fbo_target, DWORD format_flags, GLuint rb) +{ + if (format_flags & WINED3DFMT_FLAG_DEPTH) + { + gl_info->fbo_ops.glFramebufferRenderbuffer(fbo_target, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, rb); + checkGLcall("glFramebufferRenderbuffer()"); + } + + if (format_flags & WINED3DFMT_FLAG_STENCIL) + { + gl_info->fbo_ops.glFramebufferRenderbuffer(fbo_target, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, rb); + checkGLcall("glFramebufferRenderbuffer()"); + } +} + /* GL locking is done by the caller */ static void context_attach_depth_stencil_fbo(struct wined3d_context *context, GLenum fbo_target, struct wined3d_surface *depth_stencil, DWORD location) @@ -125,19 +141,8 @@ static void context_attach_depth_stencil_fbo(struct wined3d_context *context, if (depth_stencil->current_renderbuffer) { - if (format_flags & WINED3DFMT_FLAG_DEPTH) - { - gl_info->fbo_ops.glFramebufferRenderbuffer(fbo_target, GL_DEPTH_ATTACHMENT, - GL_RENDERBUFFER, depth_stencil->current_renderbuffer->id); - checkGLcall("glFramebufferRenderbuffer()"); - } - - if (format_flags & WINED3DFMT_FLAG_STENCIL) - { - gl_info->fbo_ops.glFramebufferRenderbuffer(fbo_target, GL_STENCIL_ATTACHMENT, - GL_RENDERBUFFER, depth_stencil->current_renderbuffer->id); - checkGLcall("glFramebufferRenderbuffer()"); - } + context_attach_depth_stencil_rb(gl_info, fbo_target, + format_flags, depth_stencil->current_renderbuffer->id); } else {
1
0
0
0
Henri Verbeet : wined3d: Explicitly specify the resource location to context_attach_depth_stencil_fbo ().
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: be76133b7b497f66ada8b3052e95ff5e338a08c7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=be76133b7b497f66ada8b3052…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:05:00 2011 +0200 wined3d: Explicitly specify the resource location to context_attach_depth_stencil_fbo(). --- dlls/wined3d/context.c | 44 +++++++++++++++++++++++++++----------------- 1 files changed, 27 insertions(+), 17 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 829c570..b4788bd 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -113,7 +113,7 @@ static void context_destroy_fbo(struct wined3d_context *context, GLuint *fbo) /* GL locking is done by the caller */ static void context_attach_depth_stencil_fbo(struct wined3d_context *context, - GLenum fbo_target, struct wined3d_surface *depth_stencil) + GLenum fbo_target, struct wined3d_surface *depth_stencil, DWORD location) { const struct wined3d_gl_info *gl_info = context->gl_info; @@ -141,22 +141,32 @@ static void context_attach_depth_stencil_fbo(struct wined3d_context *context, } else { - surface_prepare_texture(depth_stencil, context, FALSE); - - if (format_flags & WINED3DFMT_FLAG_DEPTH) + switch (location) { - gl_info->fbo_ops.glFramebufferTexture2D(fbo_target, GL_DEPTH_ATTACHMENT, - depth_stencil->texture_target, depth_stencil->texture_name, - depth_stencil->texture_level); - checkGLcall("glFramebufferTexture2D()"); - } + case SFLAG_INTEXTURE: + case SFLAG_INSRGBTEX: + surface_prepare_texture(depth_stencil, context, FALSE); + + if (format_flags & WINED3DFMT_FLAG_DEPTH) + { + gl_info->fbo_ops.glFramebufferTexture2D(fbo_target, GL_DEPTH_ATTACHMENT, + depth_stencil->texture_target, depth_stencil->texture_name, + depth_stencil->texture_level); + checkGLcall("glFramebufferTexture2D()"); + } + + if (format_flags & WINED3DFMT_FLAG_STENCIL) + { + gl_info->fbo_ops.glFramebufferTexture2D(fbo_target, GL_STENCIL_ATTACHMENT, + depth_stencil->texture_target, depth_stencil->texture_name, + depth_stencil->texture_level); + checkGLcall("glFramebufferTexture2D()"); + } + break; - if (format_flags & WINED3DFMT_FLAG_STENCIL) - { - gl_info->fbo_ops.glFramebufferTexture2D(fbo_target, GL_STENCIL_ATTACHMENT, - depth_stencil->texture_target, depth_stencil->texture_name, - depth_stencil->texture_level); - checkGLcall("glFramebufferTexture2D()"); + default: + ERR("Unsupported location %s (%#x).\n", debug_surflocation(location), location); + break; } } @@ -393,7 +403,7 @@ static void context_apply_fbo_entry(struct wined3d_context *context, GLenum targ /* Apply depth targets */ if (entry->depth_stencil) surface_set_compatible_renderbuffer(entry->depth_stencil, entry->render_targets[0]); - context_attach_depth_stencil_fbo(context, target, entry->depth_stencil); + context_attach_depth_stencil_fbo(context, target, entry->depth_stencil, entry->location); entry->attached = TRUE; }
1
0
0
0
Henri Verbeet : wined3d: Also print an attachment' s multisample type in context_check_fbo_status().
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: 9aaf0a30b7209a94848b8a76c3d4e037dd8d556a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9aaf0a30b7209a94848b8a76c…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:04:59 2011 +0200 wined3d: Also print an attachment's multisample type in context_check_fbo_status(). --- dlls/wined3d/context.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index 33b07ce..829c570 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -253,17 +253,17 @@ void context_check_fbo_status(const struct wined3d_context *context, GLenum targ attachment = context->current_fbo->render_targets[i]; if (attachment) { - FIXME("\tColor attachment %d: (%p) %s %ux%u\n", + FIXME("\tColor attachment %d: (%p) %s %ux%u %u samples.\n", i, attachment, debug_d3dformat(attachment->resource.format->id), - attachment->pow2Width, attachment->pow2Height); + attachment->pow2Width, attachment->pow2Height, attachment->resource.multisample_type); } } attachment = context->current_fbo->depth_stencil; if (attachment) { - FIXME("\tDepth attachment: (%p) %s %ux%u\n", + FIXME("\tDepth attachment: (%p) %s %ux%u %u samples.\n", attachment, debug_d3dformat(attachment->resource.format->id), - attachment->pow2Width, attachment->pow2Height); + attachment->pow2Width, attachment->pow2Height, attachment->resource.multisample_type); } } }
1
0
0
0
Henri Verbeet : wined3d: Get rid of the location fixup in surface_blt_fbo() .
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: 3b478afd10031a39fb3b92c6506de04c4e69b8c3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3b478afd10031a39fb3b92c65…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:04:58 2011 +0200 wined3d: Get rid of the location fixup in surface_blt_fbo(). --- dlls/wined3d/surface.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 49dbc68..ec3cf20 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -1207,11 +1207,6 @@ static void surface_blt_fbo(struct wined3d_device *device, const WINED3DTEXTUREF break; } - if (src_location == SFLAG_INDRAWABLE && surface_is_offscreen(src_surface)) - src_location = SFLAG_INTEXTURE; - if (dst_location == SFLAG_INDRAWABLE && surface_is_offscreen(dst_surface)) - dst_location = SFLAG_INTEXTURE; - /* Make sure the locations are up-to-date. Loading the destination * surface isn't required if the entire surface is overwritten. (And is * in fact harmful if we're being called by surface_load_location() with
1
0
0
0
Henri Verbeet : wined3d: Get rid of the location fixup for ORM_FBO in surface_modify_location().
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: eac640532da26841b1ac41d01823c00270cc6376 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=eac640532da26841b1ac41d01…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:04:57 2011 +0200 wined3d: Get rid of the location fixup for ORM_FBO in surface_modify_location(). --- dlls/wined3d/surface.c | 17 +++-------------- 1 files changed, 3 insertions(+), 14 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index c880e6e..49dbc68 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -5793,20 +5793,9 @@ void surface_modify_location(struct wined3d_surface *surface, DWORD location, BO TRACE("surface %p, location %s, persistent %#x.\n", surface, debug_surflocation(location), persistent); - if (wined3d_settings.offscreen_rendering_mode == ORM_FBO) - { - if (surface_is_offscreen(surface)) - { - /* With ORM_FBO, SFLAG_INTEXTURE and SFLAG_INDRAWABLE are the same - * for offscreen targets. */ - if (location & (SFLAG_INTEXTURE | SFLAG_INDRAWABLE)) - location |= (SFLAG_INTEXTURE | SFLAG_INDRAWABLE); - } - else - { - TRACE("Surface %p is an onscreen surface.\n", surface); - } - } + if (wined3d_settings.offscreen_rendering_mode == ORM_FBO && surface_is_offscreen(surface) + && (location & SFLAG_INDRAWABLE)) + ERR("Trying to invalidate the SFLAG_INDRAWABLE location of an offscreen surface.\n"); if (location & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX) && gl_info->supported[EXT_TEXTURE_SRGB_DECODE])
1
0
0
0
Henri Verbeet : wined3d: Get rid of the location fixup for ORM_FBO in surface_load_location().
by Alexandre Julliard
26 Aug '11
26 Aug '11
Module: wine Branch: master Commit: 68a5305dfd6708045d72d7af0ecba2b778c349e1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=68a5305dfd6708045d72d7af0…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Thu Aug 25 21:04:56 2011 +0200 wined3d: Get rid of the location fixup for ORM_FBO in surface_load_location(). --- dlls/wined3d/surface.c | 29 ++++++----------------------- 1 files changed, 6 insertions(+), 23 deletions(-) diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c index 75e39fc..c880e6e 100644 --- a/dlls/wined3d/surface.c +++ b/dlls/wined3d/surface.c @@ -5908,6 +5908,12 @@ static HRESULT surface_load_drawable(struct wined3d_surface *surface, UINT byte_count; BYTE *mem; + if (wined3d_settings.offscreen_rendering_mode == ORM_FBO && surface_is_offscreen(surface)) + { + ERR("Trying to load offscreen surface into SFLAG_INDRAWABLE.\n"); + return WINED3DERR_INVALIDCALL; + } + if (wined3d_settings.rendertargetlock_mode == RTL_READTEX) surface_load_location(surface, SFLAG_INTEXTURE, NULL); @@ -6140,7 +6146,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c { struct wined3d_device *device = surface->resource.device; const struct wined3d_gl_info *gl_info = &device->adapter->gl_info; - BOOL in_fbo = FALSE; HRESULT hr; TRACE("surface %p, location %s, rect %s.\n", surface, debug_surflocation(location), wine_dbgstr_rect(rect)); @@ -6161,22 +6166,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c } } - if (wined3d_settings.offscreen_rendering_mode == ORM_FBO) - { - if (surface_is_offscreen(surface)) - { - /* With ORM_FBO, SFLAG_INTEXTURE and SFLAG_INDRAWABLE are the same - * for offscreen targets. Prefer SFLAG_INTEXTURE. */ - if (location == SFLAG_INDRAWABLE) - location = SFLAG_INTEXTURE; - in_fbo = TRUE; - } - else - { - TRACE("Surface %p is an onscreen surface.\n", surface); - } - } - if (location == SFLAG_INSRGBTEX && gl_info->supported[EXT_TEXTURE_SRGB_DECODE]) location = SFLAG_INTEXTURE; @@ -6231,12 +6220,6 @@ HRESULT surface_load_location(struct wined3d_surface *surface, DWORD location, c surface_evict_sysmem(surface); } - if (in_fbo && (surface->flags & (SFLAG_INTEXTURE | SFLAG_INDRAWABLE))) - { - /* With ORM_FBO, SFLAG_INTEXTURE and SFLAG_INDRAWABLE are the same for offscreen targets. */ - surface->flags |= (SFLAG_INTEXTURE | SFLAG_INDRAWABLE); - } - if (surface->flags & (SFLAG_INTEXTURE | SFLAG_INSRGBTEX) && gl_info->supported[EXT_TEXTURE_SRGB_DECODE]) {
1
0
0
0
← Newer
1
...
17
18
19
20
21
22
23
...
77
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
Results per page:
10
25
50
100
200