[PATCH 6/6] d3d9/tests: Add tests for different YUV texture layouts

Stefan Dösinger stefandoesinger at gmail.com
Wed Feb 12 04:36:45 CST 2014


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

Am 2014-02-12 11:20, schrieb Stefan Dösinger:
> Am 2014-02-11 14:23, schrieb Martin Storsjö:
>> Yes - now I extended the test to use a non-power-of-two texture 
>> size, and if I hack out the ARB_TEXTURE_NON_POWER_OF_TWO support 
>> (in wined3d/directx.c) the tests fail and crash.
> Alright, I guess I should have a look at it.
It looks like I screwed up heightscale handling with my recent surface
memory management rework. YUY2 and UYVY are regular block-based
formats, but YV12, NV12 and I420 are not.

The block-based properties of those 3 formats (or lack thereof) could
use some tests as well. I think I didn't test YV12 when I wrote /
updated test_surface_blocks and test_volume_blocks in
dlls/d3d9/tests/device.c because none of my cards supported it in
d3d9. Maybe that's different with I420 and NV12 - I haven't checked on
Windows yet.

Ddraw has some YV12 tests in dlls/ddraw/tests/overlay.c. It shows that
this format does not use a block-based offset calculation.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJS+069AAoJEN0/YqbEcdMwNAgP/A8tEN/u8cCzQLB+6AHAf2u+
7NXGlVp/Fg5j3PCxjJZCF2KbRpfB95uw1NdLhK5RsIdMIc1Hp+5yqegCUysLu7hk
YDxyg0Vpf7DpT5Dla2VCgRNo1EhdHTTtXCXmMiIcIEbNMnVNNiQFpzSU9LUg3XEc
RqfyNHYB1jZL0DsaqjY4IcvKubxlb0biVmZr6+473lAzNYobstZbpQ1Bh/m7Inwk
Sqed3dlsasP9C30Bz91M079no5g5sW6kR0Ve8eiXgWEEqAYdqCRUBXxEqRU5n4Fz
ZwUj2FNeBgv/uxLqRf5Qc4e0FnbX3CyVrN/Re+Famko+ELze16oQ7azcZXnGx5iw
KdBLauQkPP5rg2exl8PeJaJirjjRkm1IAsgWMhzZzZSUQX+rljVtwF6zeZrdQz7u
3TZ2OpmyTkrp33o+HeEHmeK7v6JRuhS6JVFESUDMAJTtc0aXD4R8dqrK+qj0FZVc
UM34QRc+i57EAVFIdcIeHWINNe2KWB7sqL62UvITHNEwp2S6nrFlRpUK4AHqtRQ1
YDI/qpTKUDDrNSggJ2bUOsYWzO7UWE19FRy5gWGra3KoamNVYkOSQA06oY2x8+1S
/fSf7hs9ZmFj3tSrNet+IiSIWTfSQy9cE3Dwy1Dpc5Ywwl6Gzc06hLH1nCZdeC5N
pyFGw3SzvnHEe3BjdImM
=pafk
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list