2015-03-23 16:54 GMT+01:00 Stefan Dösinger <stefandoesinger(a)gmail.com>:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 03/23/15 15:50, Sebastian Lackner wrote:
+ format = D3DFMT_DXT5; + width = 5; height = 5; ... + ok(mipmaps == 1, "Returned mipmaps %d, expected %d\n", mipmaps, 1); I'm curious, why does it report 1 mipmap level? Maybe because width / 2 is smaller than the block size, even though the block-size aligned width would allow a second level. What does d3dx9 return when you have width = height = 10 for example?
It should just be because mipmaps was set to 1 before calling D3DXCheckTextureRequirements() (it's an input/output parameter). It would be interesting to check that you get 4 levels if mipmaps is set to 0 though.