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 2017
----- 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
838 discussions
Start a n
N
ew thread
Henri Verbeet : wined3d: Allow decompression blits on system memory resources in arbfp_blit_supported ().
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: f576e5c02857a506e63c33e3303e2a0a4bc24e1a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f576e5c02857a506e63c33e33…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Feb 8 16:46:34 2017 +0100 wined3d: Allow decompression blits on system memory resources in arbfp_blit_supported(). In general we prefer to do blits between system memory resources on the CPU, but decompressing DXTn formats in particular is problematic. Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/arb_program_shader.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/arb_program_shader.c b/dlls/wined3d/arb_program_shader.c index f9906b2..85ed462 100644 --- a/dlls/wined3d/arb_program_shader.c +++ b/dlls/wined3d/arb_program_shader.c @@ -7713,6 +7713,7 @@ static BOOL arbfp_blit_supported(const struct wined3d_gl_info *gl_info, const RECT *dst_rect, DWORD dst_usage, enum wined3d_pool dst_pool, const struct wined3d_format *dst_format) { enum complex_fixup src_fixup; + BOOL decompress; if (!gl_info->supported[ARB_FRAGMENT_PROGRAM]) return FALSE; @@ -7735,7 +7736,9 @@ static BOOL arbfp_blit_supported(const struct wined3d_gl_info *gl_info, return FALSE; } - if (src_pool == WINED3D_POOL_SYSTEM_MEM || dst_pool == WINED3D_POOL_SYSTEM_MEM) + decompress = src_format && (src_format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_COMPRESSED) + && !(dst_format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_COMPRESSED); + if (!decompress && (dst_pool == WINED3D_POOL_SYSTEM_MEM || src_pool == WINED3D_POOL_SYSTEM_MEM)) return FALSE; src_fixup = get_complex_fixup(src_format->color_fixup);
1
0
0
0
Henri Verbeet : wined3d: Trace the blit parameters in wined3d_select_blitter().
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: f4580e2a574d1183950f05c1826194bf6b638eb8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f4580e2a574d1183950f05c18…
Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Feb 8 16:46:33 2017 +0100 wined3d: Trace the blit parameters in wined3d_select_blitter(). Mostly for convenience, in principle these can be reconstructed from the rest of the debug output. Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index 30a80e5..64a6b9d 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -5810,6 +5810,12 @@ const struct blit_shader *wined3d_select_blitter(const struct wined3d_gl_info *g }; unsigned int i; + TRACE("gl_info %p, d3d_info %p, blit_op %#x, src_rect %s, src_usage %s, src_pool %s, src_format %s, " + "dst_rect %s, dst_usage %s, dst_pool %s, dst_format %s.\n", gl_info, d3d_info, blit_op, + wine_dbgstr_rect(src_rect), debug_d3dusage(src_usage), debug_d3dpool(src_pool), + src_format ? debug_d3dformat(src_format->id) : "(null)", wine_dbgstr_rect(dst_rect), + debug_d3dusage(dst_usage), debug_d3dpool(dst_pool), debug_d3dformat(dst_format->id)); + for (i = 0; i < sizeof(blitters) / sizeof(*blitters); ++i) { if (blitters[i]->blit_supported(gl_info, d3d_info, blit_op,
1
0
0
0
Louis Lenders : virtdisk: Add stub dll.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: e0d4b6896aa4158407826faf4775bed09de78913 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e0d4b6896aa4158407826faf4…
Author: Louis Lenders <xerox.xerox2000x(a)gmail.com> Date: Thu Feb 2 20:41:20 2017 +0100 virtdisk: Add stub dll. Signed-off-by: Louis Lenders <xerox.xerox2000x(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- configure | 2 ++ configure.ac | 1 + dlls/virtdisk/Makefile.in | 4 ++++ dlls/virtdisk/virtdisk.spec | 21 ++++++++++++++++++++ dlls/virtdisk/virtdisk_main.c | 46 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 74 insertions(+) diff --git a/configure b/configure index b2ec13a..1cac4e0 100755 --- a/configure +++ b/configure @@ -1439,6 +1439,7 @@ enable_vcomp90 enable_vcruntime140 enable_vdmdbg enable_version +enable_virtdisk enable_vssapi enable_wbemdisp enable_wbemprox @@ -18365,6 +18366,7 @@ wine_fn_config_dll vdmdbg enable_vdmdbg implib wine_fn_config_dll ver.dll16 enable_win16 wine_fn_config_dll version enable_version implib wine_fn_config_test dlls/version/tests version_test +wine_fn_config_dll virtdisk enable_virtdisk wine_fn_config_dll vmm.vxd enable_win16 wine_fn_config_dll vnbt.vxd enable_win16 wine_fn_config_dll vnetbios.vxd enable_win16 diff --git a/configure.ac b/configure.ac index 43f19de..cae8d72 100644 --- a/configure.ac +++ b/configure.ac @@ -3423,6 +3423,7 @@ WINE_CONFIG_DLL(vdmdbg,,[implib]) WINE_CONFIG_DLL(ver.dll16,enable_win16) WINE_CONFIG_DLL(version,,[implib]) WINE_CONFIG_TEST(dlls/version/tests) +WINE_CONFIG_DLL(virtdisk) WINE_CONFIG_DLL(vmm.vxd,enable_win16) WINE_CONFIG_DLL(vnbt.vxd,enable_win16) WINE_CONFIG_DLL(vnetbios.vxd,enable_win16) diff --git a/dlls/virtdisk/Makefile.in b/dlls/virtdisk/Makefile.in new file mode 100644 index 0000000..b91f0e2 --- /dev/null +++ b/dlls/virtdisk/Makefile.in @@ -0,0 +1,4 @@ +MODULE = virtdisk.dll + +C_SRCS = \ + virtdisk_main.c diff --git a/dlls/virtdisk/virtdisk.spec b/dlls/virtdisk/virtdisk.spec new file mode 100644 index 0000000..2946b66 --- /dev/null +++ b/dlls/virtdisk/virtdisk.spec @@ -0,0 +1,21 @@ +@ stub AddVirtualDiskParent +@ stub AttachVirtualDisk +@ stub BreakMirrorVirtualDisk +@ stub CompactVirtualDisk +@ stub CreateVirtualDisk +@ stub DeleteVirtualDiskMetadata +@ stub DetachVirtualDisk +@ stub EnumerateVirtualDiskMetadata +@ stub ExpandVirtualDisk +@ stub GetAllAttachedVirtualDiskPhysicalPaths +@ stub GetStorageDependencyInformation +@ stub GetVirtualDiskInformation +@ stub GetVirtualDiskMetadata +@ stub GetVirtualDiskOperationProgress +@ stub GetVirtualDiskPhysicalPath +@ stub MergeVirtualDisk +@ stub MirrorVirtualDisk +@ stub OpenVirtualDisk +@ stub ResizeVirtualDisk +@ stub SetVirtualDiskInformation +@ stub SetVirtualDiskMetadata diff --git a/dlls/virtdisk/virtdisk_main.c b/dlls/virtdisk/virtdisk_main.c new file mode 100644 index 0000000..0da0dca --- /dev/null +++ b/dlls/virtdisk/virtdisk_main.c @@ -0,0 +1,46 @@ +/* + * Copyright 2017 Louis Lenders + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "config.h" + +#include <stdarg.h> + +#include "windef.h" +#include "winbase.h" +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(virtdisk); + +/***************************************************** + * DllMain (VIRTDISK.@) + */ +BOOL WINAPI DllMain(HINSTANCE hinst, DWORD reason, void *reserved) +{ + TRACE("(%p, %d, %p)\n", hinst, reason, reserved); + + switch (reason) + { + case DLL_WINE_PREATTACH: + return FALSE; /* prefer native version */ + case DLL_PROCESS_ATTACH: + DisableThreadLibraryCalls(hinst); + break; + } + + return TRUE; +}
1
0
0
0
Józef Kucia : wined3d: Implement SM5 store_uav_typed instruction.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: 94a214b2bbf8f486619bc0d1d88003b2f6f3b85a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=94a214b2bbf8f486619bc0d1d…
Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Wed Feb 8 11:54:15 2017 +0100 wined3d: Implement SM5 store_uav_typed instruction. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d11/tests/d3d11.c | 10 +++++----- dlls/wined3d/glsl_shader.c | 36 ++++++++++++++++++++++++++++++++++-- 2 files changed, 39 insertions(+), 7 deletions(-) diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c index ca27354..da5b02c 100644 --- a/dlls/d3d11/tests/d3d11.c +++ b/dlls/d3d11/tests/d3d11.c @@ -12776,18 +12776,18 @@ static void test_ps_cs_uav_binding(void) check_texture_float(ps_texture, 0.0f, 2); draw_quad(&test_context); todo_wine check_texture_float(cs_texture, 1.0f, 2); - todo_wine check_texture_float(ps_texture, 1.0f, 2); + check_texture_float(ps_texture, 1.0f, 2); input.x = 0.5f; ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)cs_cb, 0, NULL, &input, 0, 0); ID3D11DeviceContext_Dispatch(context, 1, 1, 1); todo_wine check_texture_float(cs_texture, 0.5f, 2); - todo_wine check_texture_float(ps_texture, 1.0f, 2); + check_texture_float(ps_texture, 1.0f, 2); input.x = 2.0f; ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)ps_cb, 0, NULL, &input, 0, 0); draw_quad(&test_context); todo_wine check_texture_float(cs_texture, 0.5f, 2); - todo_wine check_texture_float(ps_texture, 2.0f, 2); + check_texture_float(ps_texture, 2.0f, 2); input.x = 8.0f; ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)cs_cb, 0, NULL, &input, 0, 0); @@ -12795,10 +12795,10 @@ static void test_ps_cs_uav_binding(void) ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)ps_cb, 0, NULL, &input, 0, 0); ID3D11DeviceContext_Dispatch(context, 1, 1, 1); todo_wine check_texture_float(cs_texture, 8.0f, 2); - todo_wine check_texture_float(ps_texture, 2.0f, 2); + check_texture_float(ps_texture, 2.0f, 2); draw_quad(&test_context); todo_wine check_texture_float(cs_texture, 8.0f, 2); - todo_wine check_texture_float(ps_texture, 4.0f, 2); + check_texture_float(ps_texture, 4.0f, 2); ID3D11ComputeShader_Release(cs); ID3D11PixelShader_Release(ps); diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c index e47d18b..2663403 100644 --- a/dlls/wined3d/glsl_shader.c +++ b/dlls/wined3d/glsl_shader.c @@ -4922,7 +4922,7 @@ static void shader_glsl_atomic(const struct wined3d_shader_instruction *ins) if (resource_type >= ARRAY_SIZE(resource_type_info)) { ERR("Unexpected resource type %#x.\n", resource_type); - resource_type = WINED3D_SHADER_RESOURCE_TEXTURE_2D; + return; } data_type = reg_maps->uav_resource_info[uav_idx].data_type; coord_mask = (1u << resource_type_info[resource_type].coord_size) - 1; @@ -4968,6 +4968,38 @@ static void shader_glsl_ld_uav(const struct wined3d_shader_instruction *ins) shader_glsl_get_prefix(version->type), uav_idx, image_coord_param.param_str, dst_swizzle); } +static void shader_glsl_store_uav(const struct wined3d_shader_instruction *ins) +{ + const struct wined3d_shader_reg_maps *reg_maps = ins->ctx->reg_maps; + const struct wined3d_shader_version *version = ®_maps->shader_version; + struct glsl_src_param image_coord_param, image_data_param; + enum wined3d_shader_resource_type resource_type; + enum wined3d_data_type data_type; + unsigned int uav_idx; + DWORD coord_mask; + + uav_idx = ins->dst[0].reg.idx[0].offset; + if (uav_idx >= ARRAY_SIZE(reg_maps->uav_resource_info)) + { + ERR("Invalid UAV index %u.\n", uav_idx); + return; + } + resource_type = reg_maps->uav_resource_info[uav_idx].type; + if (resource_type >= ARRAY_SIZE(resource_type_info)) + { + ERR("Unexpected resource type %#x.\n", resource_type); + return; + } + data_type = reg_maps->uav_resource_info[uav_idx].data_type; + coord_mask = (1u << resource_type_info[resource_type].coord_size) - 1; + + shader_glsl_add_src_param(ins, &ins->src[0], coord_mask, &image_coord_param); + shader_glsl_add_src_param_ext(ins, &ins->src[1], WINED3DSP_WRITEMASK_ALL, &image_data_param, data_type); + shader_addline(ins->ctx->buffer, "imageStore(%s_image%u, %s, %s);\n", + shader_glsl_get_prefix(version->type), uav_idx, + image_coord_param.param_str, image_data_param.param_str); +} + static void shader_glsl_resinfo(const struct wined3d_shader_instruction *ins) { const struct wined3d_shader_version *version = &ins->ctx->reg_maps->shader_version; @@ -9094,7 +9126,7 @@ static const SHADER_HANDLER shader_glsl_instruction_handler_table[WINED3DSIH_TAB /* WINED3DSIH_SQRT */ shader_glsl_map2gl, /* WINED3DSIH_STORE_RAW */ NULL, /* WINED3DSIH_STORE_STRUCTURED */ NULL, - /* WINED3DSIH_STORE_UAV_TYPED */ NULL, + /* WINED3DSIH_STORE_UAV_TYPED */ shader_glsl_store_uav, /* WINED3DSIH_SUB */ shader_glsl_binop, /* WINED3DSIH_SWAPC */ NULL, /* WINED3DSIH_SWITCH */ shader_glsl_switch,
1
0
0
0
Józef Kucia : d3d11/tests: Add test for interleaved Draw() and Dispatch() calls.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: dc92de848b95234b1b5f10f6d8e0e982489d652e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dc92de848b95234b1b5f10f6d…
Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Wed Feb 8 11:54:14 2017 +0100 d3d11/tests: Add test for interleaved Draw() and Dispatch() calls. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d11/tests/d3d11.c | 182 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) diff --git a/dlls/d3d11/tests/d3d11.c b/dlls/d3d11/tests/d3d11.c index 1e966d4..ca27354 100644 --- a/dlls/d3d11/tests/d3d11.c +++ b/dlls/d3d11/tests/d3d11.c @@ -12631,6 +12631,187 @@ static void test_cs_uav_store(void) ok(!refcount, "Device has %u references left.\n", refcount); } +static void test_ps_cs_uav_binding(void) +{ + static const D3D_FEATURE_LEVEL feature_level = D3D_FEATURE_LEVEL_11_0; + ID3D11UnorderedAccessView *cs_uav, *ps_uav; + D3D11_UNORDERED_ACCESS_VIEW_DESC uav_desc; + ID3D11Texture2D *cs_texture, *ps_texture; + struct d3d11_test_context test_context; + static const float zero[4] = {0.0f}; + D3D11_TEXTURE2D_DESC texture_desc; + ID3D11DeviceContext *context; + ID3D11Buffer *cs_cb, *ps_cb; + struct vec4 input = {1.0f}; + ID3D11ComputeShader *cs; + ID3D11PixelShader *ps; + ID3D11Device *device; + HRESULT hr; + + static const DWORD cs_code[] = + { +#if 0 + RWTexture2D<float> u; + + float value; + + [numthreads(1, 1, 1)] + void main() + { + uint x, y, width, height; + u.GetDimensions(width, height); + for (y = 0; y < height; ++y) + { + for (x = 0; x < width; ++x) + u[uint2(x, y)] = value; + } + } +#endif + 0x43425844, 0x6503503a, 0x4cd524e6, 0x2473915d, 0x93cf1201, 0x00000001, 0x000001c8, 0x00000003, + 0x0000002c, 0x0000003c, 0x0000004c, 0x4e475349, 0x00000008, 0x00000000, 0x00000008, 0x4e47534f, + 0x00000008, 0x00000000, 0x00000008, 0x58454853, 0x00000174, 0x00050050, 0x0000005d, 0x0100086a, + 0x04000059, 0x00208e46, 0x00000000, 0x00000001, 0x0400189c, 0x0011e000, 0x00000000, 0x00005555, + 0x02000068, 0x00000003, 0x0400009b, 0x00000001, 0x00000001, 0x00000001, 0x8900103d, 0x800000c2, + 0x00155543, 0x00100032, 0x00000000, 0x00004001, 0x00000000, 0x0011ee46, 0x00000000, 0x05000036, + 0x00100042, 0x00000000, 0x00004001, 0x00000000, 0x01000030, 0x07000050, 0x00100082, 0x00000000, + 0x0010002a, 0x00000000, 0x0010001a, 0x00000000, 0x03040003, 0x0010003a, 0x00000000, 0x05000036, + 0x001000e2, 0x00000001, 0x00100aa6, 0x00000000, 0x05000036, 0x00100082, 0x00000000, 0x00004001, + 0x00000000, 0x01000030, 0x07000050, 0x00100012, 0x00000002, 0x0010003a, 0x00000000, 0x0010000a, + 0x00000000, 0x03040003, 0x0010000a, 0x00000002, 0x05000036, 0x00100012, 0x00000001, 0x0010003a, + 0x00000000, 0x080000a4, 0x0011e0f2, 0x00000000, 0x00100e46, 0x00000001, 0x00208006, 0x00000000, + 0x00000000, 0x0700001e, 0x00100082, 0x00000000, 0x0010003a, 0x00000000, 0x00004001, 0x00000001, + 0x01000016, 0x0700001e, 0x00100042, 0x00000000, 0x0010002a, 0x00000000, 0x00004001, 0x00000001, + 0x01000016, 0x0100003e, + }; + static const DWORD ps_code[] = + { +#if 0 + RWTexture2D<float> u : register(u1); + + float value; + + void main() + { + uint x, y, width, height; + u.GetDimensions(width, height); + for (y = 0; y < height; ++y) + { + for (x = 0; x < width; ++x) + u[uint2(x, y)] = value; + } + } +#endif + 0x43425844, 0x2e14423b, 0x62c015c8, 0x5ea5ab9f, 0x514f1e22, 0x00000001, 0x000001b8, 0x00000003, + 0x0000002c, 0x0000003c, 0x0000004c, 0x4e475349, 0x00000008, 0x00000000, 0x00000008, 0x4e47534f, + 0x00000008, 0x00000000, 0x00000008, 0x58454853, 0x00000164, 0x00000050, 0x00000059, 0x0100086a, + 0x04000059, 0x00208e46, 0x00000000, 0x00000001, 0x0400189c, 0x0011e000, 0x00000001, 0x00005555, + 0x02000068, 0x00000003, 0x8900103d, 0x800000c2, 0x00155543, 0x00100032, 0x00000000, 0x00004001, + 0x00000000, 0x0011ee46, 0x00000001, 0x05000036, 0x00100042, 0x00000000, 0x00004001, 0x00000000, + 0x01000030, 0x07000050, 0x00100082, 0x00000000, 0x0010002a, 0x00000000, 0x0010001a, 0x00000000, + 0x03040003, 0x0010003a, 0x00000000, 0x05000036, 0x001000e2, 0x00000001, 0x00100aa6, 0x00000000, + 0x05000036, 0x00100082, 0x00000000, 0x00004001, 0x00000000, 0x01000030, 0x07000050, 0x00100012, + 0x00000002, 0x0010003a, 0x00000000, 0x0010000a, 0x00000000, 0x03040003, 0x0010000a, 0x00000002, + 0x05000036, 0x00100012, 0x00000001, 0x0010003a, 0x00000000, 0x080000a4, 0x0011e0f2, 0x00000001, + 0x00100e46, 0x00000001, 0x00208006, 0x00000000, 0x00000000, 0x0700001e, 0x00100082, 0x00000000, + 0x0010003a, 0x00000000, 0x00004001, 0x00000001, 0x01000016, 0x0700001e, 0x00100042, 0x00000000, + 0x0010002a, 0x00000000, 0x00004001, 0x00000001, 0x01000016, 0x0100003e, + }; + + if (!init_test_context(&test_context, &feature_level)) + return; + + device = test_context.device; + context = test_context.immediate_context; + + ps_cb = create_buffer(device, D3D11_BIND_CONSTANT_BUFFER, sizeof(input), &input.x); + cs_cb = create_buffer(device, D3D11_BIND_CONSTANT_BUFFER, sizeof(input), &input.x); + + texture_desc.Width = 64; + texture_desc.Height = 64; + texture_desc.MipLevels = 1; + texture_desc.ArraySize = 1; + texture_desc.Format = DXGI_FORMAT_R32_FLOAT; + texture_desc.SampleDesc.Count = 1; + texture_desc.SampleDesc.Quality = 0; + texture_desc.Usage = D3D11_USAGE_DEFAULT; + texture_desc.BindFlags = D3D11_BIND_UNORDERED_ACCESS; + texture_desc.CPUAccessFlags = 0; + texture_desc.MiscFlags = 0; + hr = ID3D11Device_CreateTexture2D(device, &texture_desc, NULL, &cs_texture); + ok(SUCCEEDED(hr), "Failed to create texture, hr %#x.\n", hr); + hr = ID3D11Device_CreateTexture2D(device, &texture_desc, NULL, &ps_texture); + ok(SUCCEEDED(hr), "Failed to create texture, hr %#x.\n", hr); + + uav_desc.Format = texture_desc.Format; + uav_desc.ViewDimension = D3D11_UAV_DIMENSION_TEXTURE2D; + U(uav_desc).Texture2D.MipSlice = 0; + hr = ID3D11Device_CreateUnorderedAccessView(device, (ID3D11Resource *)cs_texture, &uav_desc, &cs_uav); + ok(SUCCEEDED(hr), "Failed to create unordered access view, hr %#x.\n", hr); + hr = ID3D11Device_CreateUnorderedAccessView(device, (ID3D11Resource *)ps_texture, &uav_desc, &ps_uav); + ok(SUCCEEDED(hr), "Failed to create unordered access view, hr %#x.\n", hr); + + ID3D11Device_GetImmediateContext(device, &context); + + ID3D11DeviceContext_CSSetConstantBuffers(context, 0, 1, &cs_cb); + ID3D11DeviceContext_CSSetUnorderedAccessViews(context, 0, 1, &cs_uav, NULL); + ID3D11DeviceContext_PSSetConstantBuffers(context, 0, 1, &ps_cb); + /* FIXME: Set the render targets to NULL when no attachment draw calls are supported in wined3d. */ + ID3D11DeviceContext_OMSetRenderTargetsAndUnorderedAccessViews(context, + 1, &test_context.backbuffer_rtv, NULL, 1, 1, &ps_uav, NULL); + + ID3D11DeviceContext_ClearUnorderedAccessViewFloat(context, cs_uav, zero); + check_texture_float(cs_texture, 0.0f, 2); + ID3D11DeviceContext_ClearUnorderedAccessViewFloat(context, ps_uav, zero); + check_texture_float(ps_texture, 0.0f, 2); + + hr = ID3D11Device_CreateComputeShader(device, cs_code, sizeof(cs_code), NULL, &cs); + ok(SUCCEEDED(hr), "Failed to create compute shader, hr %#x.\n", hr); + ID3D11DeviceContext_CSSetShader(context, cs, NULL, 0); + hr = ID3D11Device_CreatePixelShader(device, ps_code, sizeof(ps_code), NULL, &ps); + ok(SUCCEEDED(hr), "Failed to create pixel shader, hr %#x.\n", hr); + ID3D11DeviceContext_PSSetShader(context, ps, NULL, 0); + + ID3D11DeviceContext_Dispatch(context, 1, 1, 1); + todo_wine check_texture_float(cs_texture, 1.0f, 2); + check_texture_float(ps_texture, 0.0f, 2); + draw_quad(&test_context); + todo_wine check_texture_float(cs_texture, 1.0f, 2); + todo_wine check_texture_float(ps_texture, 1.0f, 2); + + input.x = 0.5f; + ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)cs_cb, 0, NULL, &input, 0, 0); + ID3D11DeviceContext_Dispatch(context, 1, 1, 1); + todo_wine check_texture_float(cs_texture, 0.5f, 2); + todo_wine check_texture_float(ps_texture, 1.0f, 2); + input.x = 2.0f; + ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)ps_cb, 0, NULL, &input, 0, 0); + draw_quad(&test_context); + todo_wine check_texture_float(cs_texture, 0.5f, 2); + todo_wine check_texture_float(ps_texture, 2.0f, 2); + + input.x = 8.0f; + ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)cs_cb, 0, NULL, &input, 0, 0); + input.x = 4.0f; + ID3D11DeviceContext_UpdateSubresource(context, (ID3D11Resource *)ps_cb, 0, NULL, &input, 0, 0); + ID3D11DeviceContext_Dispatch(context, 1, 1, 1); + todo_wine check_texture_float(cs_texture, 8.0f, 2); + todo_wine check_texture_float(ps_texture, 2.0f, 2); + draw_quad(&test_context); + todo_wine check_texture_float(cs_texture, 8.0f, 2); + todo_wine check_texture_float(ps_texture, 4.0f, 2); + + ID3D11ComputeShader_Release(cs); + ID3D11PixelShader_Release(ps); + ID3D11Buffer_Release(cs_cb); + ID3D11Buffer_Release(ps_cb); + ID3D11Texture2D_Release(cs_texture); + ID3D11Texture2D_Release(ps_texture); + ID3D11UnorderedAccessView_Release(cs_uav); + ID3D11UnorderedAccessView_Release(ps_uav); + ID3D11DeviceContext_Release(context); + release_test_context(&test_context); +} + static void test_sm4_ret_instruction(void) { struct d3d11_test_context test_context; @@ -13440,6 +13621,7 @@ START_TEST(d3d11) test_stencil_separate(); test_uav_load(); test_cs_uav_store(); + test_ps_cs_uav_binding(); test_sm4_ret_instruction(); test_primitive_restart(); test_sm5_bufinfo_instruction();
1
0
0
0
Józef Kucia : wined3d: Use more suitable bind target for SRV/UAV buffers.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: 2249527922504ae0e379da738b3ef5986c037b0a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2249527922504ae0e379da738…
Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Wed Feb 8 11:54:13 2017 +0100 wined3d: Use more suitable bind target for SRV/UAV buffers. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/buffer.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/buffer.c b/dlls/wined3d/buffer.c index de5ab17..5e434f3 100644 --- a/dlls/wined3d/buffer.c +++ b/dlls/wined3d/buffer.c @@ -1353,11 +1353,16 @@ static const struct wined3d_resource_ops buffer_resource_ops = buffer_resource_sub_resource_unmap, }; -static GLenum buffer_type_hint_from_bind_flags(unsigned int bind_flags) +static GLenum buffer_type_hint_from_bind_flags(const struct wined3d_gl_info *gl_info, + unsigned int bind_flags) { if (bind_flags == WINED3D_BIND_INDEX_BUFFER) return GL_ELEMENT_ARRAY_BUFFER; + if (bind_flags & (WINED3D_BIND_SHADER_RESOURCE | WINED3D_BIND_UNORDERED_ACCESS) + && gl_info->supported[ARB_TEXTURE_BUFFER_OBJECT]) + return GL_TEXTURE_BUFFER; + if (bind_flags & WINED3D_BIND_CONSTANT_BUFFER) return GL_UNIFORM_BUFFER; @@ -1395,7 +1400,7 @@ static HRESULT buffer_init(struct wined3d_buffer *buffer, struct wined3d_device WARN("Failed to initialize resource, hr %#x.\n", hr); return hr; } - buffer->buffer_type_hint = buffer_type_hint_from_bind_flags(bind_flags); + buffer->buffer_type_hint = buffer_type_hint_from_bind_flags(gl_info, bind_flags); buffer->bind_flags = bind_flags; buffer->locations = WINED3D_LOCATION_SYSMEM;
1
0
0
0
Nikolay Sivov : dxgi/tests: Basic test for DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: 0b4ca2519870ce45b9b16411762b30e30602d50a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0b4ca2519870ce45b9b164117…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Feb 8 11:26:26 2017 +0300 dxgi/tests: Basic test for DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dxgi/tests/device.c | 96 ++++++++++++++++++++++++++++++++++++------------ 1 file changed, 73 insertions(+), 23 deletions(-) diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c index 9fe63b5..b092d5e 100644 --- a/dlls/dxgi/tests/device.c +++ b/dlls/dxgi/tests/device.c @@ -303,20 +303,20 @@ static void compute_expected_swapchain_fullscreen_state_after_fullscreen_change_ } } -static IDXGIDevice *create_device(void) +static IDXGIDevice *create_device(UINT flags) { IDXGIDevice *dxgi_device; ID3D10Device1 *device; HRESULT hr; if (SUCCEEDED(D3D10CreateDevice1(NULL, D3D10_DRIVER_TYPE_HARDWARE, NULL, - 0, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) + flags, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) goto success; if (SUCCEEDED(D3D10CreateDevice1(NULL, D3D10_DRIVER_TYPE_WARP, NULL, - 0, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) + flags, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) goto success; if (SUCCEEDED(D3D10CreateDevice1(NULL, D3D10_DRIVER_TYPE_REFERENCE, NULL, - 0, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) + flags, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) goto success; return NULL; @@ -339,7 +339,7 @@ static void test_adapter_desc(void) ULONG refcount; HRESULT hr; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; @@ -407,7 +407,7 @@ static void test_check_interface_support(void) ULONG refcount; HRESULT hr; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return; @@ -462,7 +462,7 @@ static void test_create_surface(void) ULONG refcount; HRESULT hr; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; @@ -508,7 +508,7 @@ static void test_parents(void) ULONG refcount; HRESULT hr; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; @@ -576,7 +576,7 @@ static void test_output(void) UINT mode_count, mode_count_comp, i; DXGI_MODE_DESC *modes; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; @@ -683,7 +683,7 @@ static void test_find_closest_matching_mode(void) ULONG refcount; HRESULT hr; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return; @@ -867,13 +867,14 @@ static void test_create_swapchain(void) struct swapchain_fullscreen_state initial_state, expected_state; unsigned int i, expected_width, expected_height; DXGI_SWAP_CHAIN_DESC creation_desc, result_desc; + IDXGIDevice *device, *bgra_device; ULONG refcount, expected_refcount; + IUnknown *obj, *obj2, *parent; RECT *expected_client_rect; IDXGISwapChain *swapchain; - IUnknown *obj, *parent; + IDXGISurface1 *surface; IDXGIAdapter *adapter; IDXGIFactory *factory; - IDXGIDevice *device; IDXGIOutput *target; BOOL fullscreen; HRESULT hr; @@ -887,7 +888,7 @@ static void test_create_swapchain(void) { 0, 0, TRUE, FALSE}, }; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; @@ -1004,6 +1005,55 @@ static void test_create_swapchain(void) check_window_fullscreen_state(creation_desc.OutputWindow, &initial_state.fullscreen_state); + /* Test GDI-compatible swapchain */ + bgra_device = create_device(D3D10_CREATE_DEVICE_BGRA_SUPPORT); + ok(!!bgra_device, "Failed to create BGRA capable device.\n"); + + hr = IDXGIDevice_QueryInterface(bgra_device, &IID_IUnknown, (void **)&obj2); + ok(SUCCEEDED(hr), "IDXGIDevice does not implement IUnknown.\n"); + + hr = IDXGIFactory_CreateSwapChain(factory, obj2, &creation_desc, &swapchain); + ok(SUCCEEDED(hr), "CreateSwapChain failed, hr %#x.\n", hr); + + hr = IDXGISwapChain_GetBuffer(swapchain, 0, &IID_IDXGISurface1, (void **)&surface); + if (SUCCEEDED(hr)) + { + HDC hdc; + + hr = IDXGISurface1_GetDC(surface, FALSE, &hdc); + ok(FAILED(hr), "Expected GetDC() to fail, %#x\n", hr); + + IDXGISurface1_Release(surface); + IDXGISwapChain_Release(swapchain); + + creation_desc.BufferDesc.Format = DXGI_FORMAT_B8G8R8A8_UNORM; + creation_desc.Flags = DXGI_SWAP_CHAIN_FLAG_GDI_COMPATIBLE; + + hr = IDXGIFactory_CreateSwapChain(factory, obj2, &creation_desc, &swapchain); + ok(SUCCEEDED(hr), "CreateSwapChain failed, hr %#x.\n", hr); + + creation_desc.BufferDesc.Format = DXGI_FORMAT_R8G8B8A8_UNORM; + creation_desc.Flags = 0; + + hr = IDXGISwapChain_GetBuffer(swapchain, 0, &IID_IDXGISurface1, (void **)&surface); + ok(SUCCEEDED(hr), "Failed to get front buffer, hr %#x.\n", hr); + + hr = IDXGISurface1_GetDC(surface, FALSE, &hdc); + todo_wine + ok(SUCCEEDED(hr), "Expected GetDC() to succeed, %#x\n", hr); + IDXGISurface1_ReleaseDC(surface, NULL); + + IDXGISurface1_Release(surface); + IDXGISwapChain_Release(swapchain); + } + else + { + win_skip("IDXGISurface1 is not supported, skipping GetDC() tests.\n"); + IDXGISwapChain_Release(swapchain); + } + IUnknown_Release(obj2); + IDXGIDevice_Release(bgra_device); + creation_desc.Windowed = FALSE; for (i = 0; i < sizeof(refresh_list) / sizeof(*refresh_list); ++i) @@ -1231,7 +1281,7 @@ static void test_get_containing_output(void) HRESULT hr; BOOL ret; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return; @@ -1585,7 +1635,7 @@ static void test_set_fullscreen(void) ULONG refcount; HRESULT hr; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return; @@ -1678,7 +1728,7 @@ static void test_default_fullscreen_target_output(void) HRESULT hr; BOOL ret; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return; @@ -1958,7 +2008,7 @@ static void test_resize_target(void) {{10, 10}, FALSE, TRUE, DXGI_SWAP_CHAIN_FLAG_ALLOW_MODE_SWITCH}, }; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return; @@ -2095,7 +2145,7 @@ static void test_inexact_modes(void) {799, 601}, }; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return; @@ -2333,13 +2383,13 @@ static void test_private_data(void) {0x9b, 0x4b, 0x89, 0xd7, 0xd1, 0x12, 0xe7, 0x2b} }; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; } - test_object = create_device(); + test_object = create_device(0); /* SetPrivateData with a pointer of NULL has the purpose of FreePrivateData in previous * d3d versions. A successful clear returns S_OK. A redundant clear S_FALSE. Setting a @@ -2462,7 +2512,7 @@ static void test_swapchain_resize(void) HRESULT hr; BOOL ret; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; @@ -2832,7 +2882,7 @@ static void test_swapchain_parameters(void) {FALSE, 17, DXGI_SWAP_EFFECT_FLIP_DISCARD, DXGI_ERROR_INVALID_CALL, DXGI_ERROR_INVALID_CALL, 0}, }; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device, skipping tests.\n"); return; @@ -2953,7 +3003,7 @@ static void test_maximum_frame_latency(void) ULONG refcount; HRESULT hr; - if (!(device = create_device())) + if (!(device = create_device(0))) { skip("Failed to create device.\n"); return;
1
0
0
0
Nikolay Sivov : dxgi/tests: Switch to D3D10.1.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: 1502436ea7b615f588fc243b62a417adb8a5bb62 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1502436ea7b615f588fc243b6…
Author: Nikolay Sivov <nsivov(a)codeweavers.com> Date: Wed Feb 8 11:26:25 2017 +0300 dxgi/tests: Switch to D3D10.1. Signed-off-by: Nikolay Sivov <nsivov(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dxgi/tests/Makefile.in | 2 +- dlls/dxgi/tests/device.c | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dlls/dxgi/tests/Makefile.in b/dlls/dxgi/tests/Makefile.in index d706f16..2676bc9 100644 --- a/dlls/dxgi/tests/Makefile.in +++ b/dlls/dxgi/tests/Makefile.in @@ -1,5 +1,5 @@ TESTDLL = dxgi.dll -IMPORTS = d3d10 dxgi user32 +IMPORTS = d3d10_1 dxgi user32 C_SRCS = \ device.c diff --git a/dlls/dxgi/tests/device.c b/dlls/dxgi/tests/device.c index 0b3891f..9fe63b5 100644 --- a/dlls/dxgi/tests/device.c +++ b/dlls/dxgi/tests/device.c @@ -306,22 +306,25 @@ static void compute_expected_swapchain_fullscreen_state_after_fullscreen_change_ static IDXGIDevice *create_device(void) { IDXGIDevice *dxgi_device; - ID3D10Device *device; + ID3D10Device1 *device; HRESULT hr; - if (SUCCEEDED(D3D10CreateDevice(NULL, D3D10_DRIVER_TYPE_HARDWARE, NULL, 0, D3D10_SDK_VERSION, &device))) + if (SUCCEEDED(D3D10CreateDevice1(NULL, D3D10_DRIVER_TYPE_HARDWARE, NULL, + 0, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) goto success; - if (SUCCEEDED(D3D10CreateDevice(NULL, D3D10_DRIVER_TYPE_WARP, NULL, 0, D3D10_SDK_VERSION, &device))) + if (SUCCEEDED(D3D10CreateDevice1(NULL, D3D10_DRIVER_TYPE_WARP, NULL, + 0, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) goto success; - if (SUCCEEDED(D3D10CreateDevice(NULL, D3D10_DRIVER_TYPE_REFERENCE, NULL, 0, D3D10_SDK_VERSION, &device))) + if (SUCCEEDED(D3D10CreateDevice1(NULL, D3D10_DRIVER_TYPE_REFERENCE, NULL, + 0, D3D10_FEATURE_LEVEL_10_0, D3D10_1_SDK_VERSION, &device))) goto success; return NULL; success: - hr = ID3D10Device_QueryInterface(device, &IID_IDXGIDevice, (void **)&dxgi_device); + hr = ID3D10Device1_QueryInterface(device, &IID_IDXGIDevice, (void **)&dxgi_device); ok(SUCCEEDED(hr), "Created device does not implement IDXGIDevice\n"); - ID3D10Device_Release(device); + ID3D10Device1_Release(device); return dxgi_device; }
1
0
0
0
Alistair Leslie-Hughes : dxgi: Silence a noisy fixme.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: a55cf3586d5f8f1b16954dc50fc4500c2f2b9ef4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a55cf3586d5f8f1b16954dc50…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Wed Feb 8 04:38:22 2017 +0000 dxgi: Silence a noisy fixme. Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/dxgi/output.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/dxgi/output.c b/dlls/dxgi/output.c index 0cf8084..737ba29 100644 --- a/dlls/dxgi/output.c +++ b/dlls/dxgi/output.c @@ -268,7 +268,12 @@ static HRESULT STDMETHODCALLTYPE dxgi_output_FindClosestMatchingMode(IDXGIOutput static HRESULT STDMETHODCALLTYPE dxgi_output_WaitForVBlank(IDXGIOutput *iface) { - FIXME("iface %p stub!\n", iface); + static BOOL once = FALSE; + + if (!once++) + FIXME("iface %p stub!\n", iface); + else + TRACE("iface %p stub!\n", iface); return E_NOTIMPL; }
1
0
0
0
Matteo Bruni : d3dx11: Make use of data_size when tracing data string.
by Alexandre Julliard
08 Feb '17
08 Feb '17
Module: wine Branch: master Commit: 45aef81cbe5aecc75a36fdf821c66355adff52de URL:
http://source.winehq.org/git/wine.git/?a=commit;h=45aef81cbe5aecc75a36fdf82…
Author: Matteo Bruni <mbruni(a)codeweavers.com> Date: Tue Feb 7 22:08:44 2017 +0100 d3dx11: Make use of data_size when tracing data string. Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3dx11_43/async.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/d3dx11_43/async.c b/dlls/d3dx11_43/async.c index ea7072a..ece13e9 100644 --- a/dlls/d3dx11_43/async.c +++ b/dlls/d3dx11_43/async.c @@ -224,8 +224,9 @@ HRESULT WINAPI D3DX11CompileFromMemory(const char *data, SIZE_T data_size, const { TRACE("data %s, data_size %lu, filename %s, defines %p, include %p, entry_point %s, target %s, " "sflags %#x, eflags %#x, pump %p, shader %p, error_messages %p, hresult %p.\n", - debugstr_a(data), data_size, debugstr_a(filename), defines, include, debugstr_a(entry_point), - debugstr_a(target), sflags, eflags, pump, shader, error_messages, hresult); + debugstr_an(data, data_size), data_size, debugstr_a(filename), defines, include, + debugstr_a(entry_point), debugstr_a(target), sflags, eflags, pump, shader, + error_messages, hresult); if (pump) FIXME("Unimplemented ID3DX11ThreadPump handling.\n");
1
0
0
0
← Newer
1
...
59
60
61
62
63
64
65
...
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