win users please test DirectX9_AutoGenFilterType patch

paulo lesgaz jeremielapuree at
Sat Jul 11 06:21:00 CDT 2009

In a Vista box (real, not virtual)
Nvidia Geforce 7600 go

275 tests executed (0 marked as todo, 0 failures), 0 skipped.


--- En date de : Ven 10.7.09, Joerg-Cyril.Hoehle at <Joerg-Cyril.Hoehle at> a écrit :

De: Joerg-Cyril.Hoehle at <Joerg-Cyril.Hoehle at>
Objet: win users please test DirectX9_AutoGenFilterType patch
À: wine-devel at
Date: Vendredi 10 Juillet 2009, 14h05

Dear users of MS-Windows with access to a compiler,

please compile the following addition to the Wine testsuite and report results of running
on MS-Windows to me by e-mail (preferred) or to this list. The goal is to get rid of bug

For that I need test data from MS-Windows systems. Maybe some more
    || broken(D3DTEXF_POINT == fltt)
are needed for the tests to pass on some MS-Windows systems/gfx-drivers with limited filter types.

Once proper MS-Windows behaviour is known, the patch to Wine will follow.
Currently Wine fails the test below.

diff --git a/dlls/d3d9/tests/texture.c b/dlls/d3d9/tests/texture.c
index 4d433b1..29864a8 100644
--- a/dlls/d3d9/tests/texture.c
+++ b/dlls/d3d9/tests/texture.c
@@ -197,6 +197,21 @@ static void test_mipmap_gen(IDirect3DDevice9 *device)
                                         D3DFMT_X8R8G8B8, D3DPOOL_MANAGED, &texture, 0);
     ok(hr == D3D_OK, "IDirect3DDevice9_CreateTexture failed(%08x)\n", hr);
+    if (texture) {
+        fltt = IDirect3DTexture9_GetAutoGenFilterType(texture);
+        ok(D3DTEXF_LINEAR == fltt, "GetAutoGenFilterType returned default %d\n", fltt);
+        hr = IDirect3DTexture9_SetAutoGenFilterType(texture, D3DTEXF_NONE);
+        ok(hr == D3DERR_INVALIDCALL, "SetAutoGenFilterType D3DTEXF_NONE returned %08x\n", hr);
+        hr = IDirect3DTexture9_SetAutoGenFilterType(texture, D3DTEXF_ANISOTROPIC);
+        ok(hr == D3D_OK, "SetAutoGenFilterType D3DTEXF_ANISOTROPIC returned %08x\n", hr);
+        fltt = IDirect3DTexture9_GetAutoGenFilterType(texture);
+        ok(D3DTEXF_ANISOTROPIC == fltt /*|| broken(D3DTEXF_POINT == fltt)*/,
+           "GetAutoGenFilterType returned %d\n", fltt);
+        hr = IDirect3DTexture9_SetAutoGenFilterType(texture, D3DTEXF_LINEAR);
+        ok(hr == D3D_OK, "SetAutoGenFilterType D3DTEXF_LINEAR returned %08x\n", hr);
+        /* IDirect3DTexture9_GenerateMipSubLevels ? */
+    }
     levels = IDirect3DTexture9_GetLevelCount(texture);
     ok(levels == 1, "Got %d levels, expected 1\n", levels);
Thanks for your help,
    Jörg Höhle

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the wine-devel mailing list