Module: tools
Branch: master
Commit: cfaf2a62e692dc6241bf2532aaa102d6140b5157
URL: https://source.winehq.org/git/tools.git/?a=commit;h=cfaf2a62e692dc6241bf253…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Thu Feb 10 19:51:42 2022 +0100
testbot/LibvirtTool: Do not require '-off' to be at the end of the snapshot name.
One could certainly reorder the elements of the snapshot name so '-off'
is the last part but it's not always natural.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/LibvirtTool.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/bin/LibvirtTool.pl b/testbot/bin/LibvirtTool.pl
index ae21834..e3bc2a0 100755
--- a/testbot/bin/LibvirtTool.pl
+++ b/testbot/bin/LibvirtTool.pl
@@ -283,7 +283,7 @@ sub ShutDown()
{
my $Domain = $VM->GetDomain();
my $CurrentSnapshot = $Domain->GetSnapshotName();
- if (!defined $CurrentSnapshot or $CurrentSnapshot !~ /-off$/ or
+ if (!defined $CurrentSnapshot or $CurrentSnapshot !~ /-off\b/ or
!$Domain->IsPoweredOn())
{
return 1;
Module: wine
Branch: master
Commit: 84dcf5279fc577856f82705aaaa62cdf92182049
URL: https://source.winehq.org/git/wine.git/?a=commit;h=84dcf5279fc577856f82705a…
Author: Matteo Bruni <mbruni(a)codeweavers.com>
Date: Wed Feb 9 16:50:00 2022 +0100
wined3d: Improve comment in wined3d_query_vk_issue().
Signed-off-by: Matteo Bruni <mbruni(a)codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/wined3d/query.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/dlls/wined3d/query.c b/dlls/wined3d/query.c
index 864a3b82f0a..6c1ed1d6b5a 100644
--- a/dlls/wined3d/query.c
+++ b/dlls/wined3d/query.c
@@ -1681,10 +1681,11 @@ static BOOL wined3d_query_vk_issue(struct wined3d_query *query, uint32_t flags)
return false;
}
- /* A query needs to either begin and end inside a single render pass,
- * or begin and end outside of a render pass. Occlusion queries, if issued
- * outside of a render pass, are queued up and only begun when a render
- * pass is started, to avoid interrupting it when the query ends. */
+ /* A query needs to either begin and end inside a single render pass
+ * or begin and end outside of a render pass. Occlusion queries, if
+ * issued outside of a render pass, are queued up and only begun when
+ * a render pass is started, to avoid interrupting the render pass
+ * when the query ends. */
if (context_vk->vk_render_pass)
{
wined3d_query_vk_begin(query_vk, context_vk, vk_command_buffer);
Module: wine
Branch: master
Commit: 3a833d9b0b73aef54499e89b0d0c2ead959e650e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=3a833d9b0b73aef54499e89b…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Wed Feb 9 14:23:17 2022 +0300
ddraw/tests: Account for random WARP behavior in test_texturemapblend.
Signed-off-by: Stefan Dösinger <stefan(a)codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/ddraw/tests/ddraw1.c | 34 ++++++++++++++++++++++++++++++----
1 file changed, 30 insertions(+), 4 deletions(-)
diff --git a/dlls/ddraw/tests/ddraw1.c b/dlls/ddraw/tests/ddraw1.c
index 304671558af..458b3f48fdb 100644
--- a/dlls/ddraw/tests/ddraw1.c
+++ b/dlls/ddraw/tests/ddraw1.c
@@ -8390,6 +8390,20 @@ static void test_texturemapblend(void)
emit_set_rs(&ptr, D3DRENDERSTATE_TEXTUREMAPBLEND, D3DTBLEND_MODULATE);
emit_set_rs(&ptr, D3DRENDERSTATE_TEXTUREHANDLE, texture_handle);
+ /* SPECULARENABLE shouldn't matter in this test, but WARP begs to
+ * differ. In the event that color keying is randomly on (see comments
+ * in test_ck_default for reference), WARP will randomly discard
+ * fragments based on something, even though texture and diffuse color
+ * alpha components are non-zero. Setting SPECULARENABLE to FALSE
+ * prevents this in some cases - presumably WARP multiplies the
+ * specular color "alpha" channel into the final result and then
+ * alpha tests the result. Since the specular property normally does
+ * not have an alpha component the actual specular color we set in
+ * the vertex data above does not matter. Setting FOGENABLE = FALSE
+ * does not help either (specular alpha can contain a per-vertex fog
+ * factor. Doesn't seem to matter here). */
+ emit_set_rs(&ptr, D3DRENDERSTATE_SPECULARENABLE, FALSE);
+
emit_tquad(&ptr, 0);
emit_tquad(&ptr, 4);
emit_end(&ptr);
@@ -8407,6 +8421,7 @@ static void test_texturemapblend(void)
hr = IDirect3DDevice_EndScene(device);
ok(SUCCEEDED(hr), "Failed to end scene, hr %#x.\n", hr);
+ /* The above SPECULARENABLE = FALSE on WARP matters here.*/
color = get_surface_color(rt, 5, 5);
ok(compare_color(color, 0x00000080, 2), "Got unexpected color 0x%08x.\n", color);
color = get_surface_color(rt, 400, 5);
@@ -8476,14 +8491,25 @@ static void test_texturemapblend(void)
hr = IDirect3DDevice_EndScene(device);
ok(SUCCEEDED(hr), "Failed to end scene, hr %#x.\n", hr);
+ /* Despite our best efforts at not making color keying randomly triggering, those
+ * four broken() results occur every now and then on WARP. Presumably the non-
+ * existent alpha channel sometimes samples 0.0 instead of the expected 1.0. */
color = get_surface_color(rt, 5, 5);
- ok(compare_color(color, 0x000000ff, 2), "Got unexpected color 0x%08x.\n", color);
+ ok(compare_color(color, 0x000000ff, 2)
+ || broken(ddraw_is_warp(ddraw) && compare_color(color, 0x00000000, 2)),
+ "Got unexpected color 0x%08x.\n", color);
color = get_surface_color(rt, 400, 5);
- ok(compare_color(color, 0x000000ff, 2), "Got unexpected color 0x%08x.\n", color);
+ ok(compare_color(color, 0x000000ff, 2)
+ || broken(ddraw_is_warp(ddraw) && compare_color(color, 0x00000000, 2)),
+ "Got unexpected color 0x%08x.\n", color);
color = get_surface_color(rt, 5, 245);
- ok(compare_color(color, 0x00000080, 2), "Got unexpected color 0x%08x.\n", color);
+ ok(compare_color(color, 0x00000080, 2)
+ || broken(ddraw_is_warp(ddraw) && compare_color(color, 0x00000000, 2)),
+ "Got unexpected color 0x%08x.\n", color);
color = get_surface_color(rt, 400, 245);
- ok(compare_color(color, 0x00000080, 2), "Got unexpected color 0x%08x.\n", color);
+ ok(compare_color(color, 0x00000080, 2)
+ || broken(ddraw_is_warp(ddraw) && compare_color(color, 0x00000000, 2)),
+ "Got unexpected color 0x%08x.\n", color);
IDirect3DTexture_Release(texture);
ref = IDirectDrawSurface_Release(surface);