[PATCH 3/5] d3d9/tests: Test locking of mipmap textures.

Stefan Dösinger stefandoesinger at gmail.com
Fri Apr 4 05:52:06 CDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 2014-04-04 12:23, schrieb Henri Verbeet:
> On 4 April 2014 11:51, Stefan Dösinger <stefan at codeweavers.com> wrote:
>> +    hr = IDirect3DDevice9_CreateTexture(device, 4, 4, 2, 0, D3DFMT_X8R8G8B8,
>> +            D3DPOOL_DEFAULT, &texture_dst, NULL);
>> +    ok(SUCCEEDED(hr), "Failed to create texture, hr %#x.\n", hr);
>> +    hr = IDirect3DTexture9_GetSurfaceLevel(texture_dst, 0, &surface_dst);
>> +    ok(SUCCEEDED(hr), "Failed to get surface level, hr %#x.\n", hr);
>> +    hr = IDirect3DTexture9_GetSurfaceLevel(texture_dst, 0, &surface_dst2);
>> +    ok(SUCCEEDED(hr), "Failed to get surface level, hr %#x.\n", hr);
>> +
> This gets two references to the same surface level, is that intentional?
No, the second one should pass level 1.

>> +    hr = IDirect3DDevice9_UpdateSurface(device, surface, NULL, surface_dst, NULL);
>> +    ok(SUCCEEDED(hr), "Failed to update surface, hr %#x.\n", hr);
>> +    hr = IDirect3DDevice9_UpdateSurface(device, surface2, NULL, surface_dst2, NULL);
>> +    todo_wine ok(hr == D3DERR_INVALIDCALL, "Got unexpected hr %#x.\n", hr);
>> +
> Doesn't this just fail because the surface sizes are different?
> (Although I would have expected this to work.)
I re-checked this, it indeed fails because the source is locked and
not because the destination is wrong.


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTPo7VAAoJEN0/YqbEcdMwZi4QAIxotIMQybguTKcQR9eDCEqI
dqdEx9FpXBZfq/9gUzPAw1xS6nNpZ623J+7BvfzpWs15eQbO0A+Vm1PcpXHA3D2T
hjQ82WDzZ1WFQ4kimASoK3hWWTQhToyREueLFcu3/T1wKYZ8jk3UYcAIhDRbHUwd
HqXniZ2V/KPEXuRxj/9ZjCS7z3wa0qZyvCI8WsOijjJJ0hUTKz3bvdfO2x18hB9Z
r2MsNu6TtHkRRnrf++6XsrUW7RMGIJi+jLeWXwjgxq7C2EmZrGIGMwXknsaj5jpA
EOCvQ8z2J2/Qm45bo4OVILKEWR6XaXgwOSVj1fK1RpCHyKbLWiifpmt0t0hrr0Jm
a60U7S9xV7tb1AuwcZcF8VV5bDvwfMgsk2+3iRWkioGlN5krS7UxxVjiG2RqobnD
zmscuqS4GOQcrYnicGoOErviq+52d36u+33364Ki0pZLLTUp3wshcWo00ozLYc5f
z5mq0WDbKxx8ONbQr3XKwD17T3t4rwVGbCvbopQdBS1S8SftLImC8T5/F4FBuqRc
xEyGRDGFNQwY6wAa8gf2oQhnaOsjl63XG11zr5VZEVmgSeQ/4Z8iFYpTksx5XrSs
XHHhNHbDsnelCZn1o6QAq/5b6u0zuugs6oa9XZvpS/smsR84FDYlZ1sS4sBs6vpn
hAKU7is/cBt+Td+YDllg
=1Xiv
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list