[MPlayer-dev-eng] Direct3D OSD discussion

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Mon Dec 8 12:31:02 CET 2008


On Mon, Dec 08, 2008 at 11:05:38AM +0000, Jim Hauxwell wrote:
> a = D3DPTEXTURECAPS_POW2
> b = D3DPTEXTURECAPS_NONPOW2CONDITIONAL
> 
> a b   a ^b   !(a^b)    (a==b)
> 0 0   0      1         1
> 0 1   1      0         0
> 1 0   1      0         0
> 1 1   0      1         1
> 
> The D3D docs say the if a & b are neither defined then you assume the
> device can support non power2 textures.  If they are both set then also
> this is true.  If a then power2 dimensions, but possibly not square.
> The other case is invalid.

Sorry, yes, you are right. But there is also the case a = 0, b = 1. This
probably does not exist, but as I read it, it means non-pow2 is
supported, and more importantly it leads to simpler code.
(and I misunderstood what you said in my previoous mail).

Greetings,
Reimar Döffinger



More information about the MPlayer-dev-eng mailing list