Stefan Dösinger : d3d9: Make the shading test even more precision tolerant.
Alexandre Julliard
julliard at winehq.org
Wed Apr 2 16:36:25 CDT 2008
Module: wine
Branch: master
Commit: 685d14818c33f1952612ca36ed76fef9397ea9fb
URL: http://source.winehq.org/git/wine.git/?a=commit;h=685d14818c33f1952612ca36ed76fef9397ea9fb
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Sat Mar 29 13:56:56 2008 +0100
d3d9: Make the shading test even more precision tolerant.
This is needed on both windows and wine, seems to be a hardware thing.
---
dlls/d3d9/tests/visual.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/d3d9/tests/visual.c b/dlls/d3d9/tests/visual.c
index da4d7ab..418e92c 100644
--- a/dlls/d3d9/tests/visual.c
+++ b/dlls/d3d9/tests/visual.c
@@ -1,6 +1,6 @@
/*
* Copyright 2005, 2007 Henri Verbeet
- * Copyright (C) 2007 Stefan Dösinger(for CodeWeavers)
+ * Copyright (C) 2007-2008 Stefan Dösinger(for CodeWeavers)
* Copyright (C) 2008 Jason Green(for TransGaming)
*
* This library is free software; you can redistribute it and/or
@@ -6426,12 +6426,12 @@ static void shademode_test(IDirect3DDevice9 *device)
r = (color0 & 0x00ff0000) >> 16;
g = (color0 & 0x0000ff00) >> 8;
b = (color0 & 0x000000ff);
- ok(r >= 0x0d && r <= 0x0e && g == 0xca && b >= 0x27 && b <= 0x28,
+ ok(r >= 0x0c && r <= 0x0e && g == 0xca && b >= 0x27 && b <= 0x28,
"GOURAUD shading has color0 %08x, expected 0x000dca28\n", color0);
r = (color1 & 0x00ff0000) >> 16;
g = (color1 & 0x0000ff00) >> 8;
b = (color1 & 0x000000ff);
- ok(r == 0x0d && g >= 0x44 && g <= 0x45 && b >= 0xc7 && b <= 0xc8,
+ ok(r >= 0x0c && r <= 0x0d && g >= 0x44 && g <= 0x45 && b >= 0xc7 && b <= 0xc8,
"GOURAUD shading has color1 %08x, expected 0x000d45c7\n", color1);
color0_gouraud = color0;
@@ -6444,12 +6444,12 @@ static void shademode_test(IDirect3DDevice9 *device)
r = (color0 & 0x00ff0000) >> 16;
g = (color0 & 0x0000ff00) >> 8;
b = (color0 & 0x000000ff);
- ok(r >= 0x0d && r <= 0x0e && g == 0xca && b >= 0x27 && b <= 0x28,
+ ok(r >= 0x0c && r <= 0x0e && g == 0xca && b >= 0x27 && b <= 0x28,
"PHONG shading has color0 %08x, expected 0x000dca28\n", color0);
r = (color1 & 0x00ff0000) >> 16;
g = (color1 & 0x0000ff00) >> 8;
b = (color1 & 0x000000ff);
- ok(r == 0x0d && g >= 0x44 && g <= 0x45 && b >= 0xc7 && b <= 0xc8,
+ ok(r >= 0x0c && r <= 0x0d && g >= 0x44 && g <= 0x45 && b >= 0xc7 && b <= 0xc8,
"PHONG shading has color1 %08x, expected 0x000d45c7\n", color1);
ok(color0 == color0_gouraud, "difference between GOURAUD and PHONG shading detected: %08x %08x\n",
More information about the wine-cvs
mailing list