d3d9: Add DF16 support

Henri Verbeet hverbeet at gmail.com
Mon Jun 8 01:34:12 CDT 2009

2009/6/7 Frank Richter <frank.richter at gmail.com>:
> On 07.06.2009 22:22, Henri Verbeet wrote:
>> Even if the format isn't lockable, you can still use the data with a
>> shader.
> If it's a typical depth format the shader will see normalized values.
Yes, but floating point formats aren't "typical".

> Information on DF16 seems to be sparse, one thing I found was:
> http://discussms.hosting.lsoft.com/SCRIPTS/WA-MSD.EXE?A2=ind0611A&L=DIRECTXDEV&P=R2492&I=-3&d=No+Match%3BMatch%3BMatches
> It says that DF16 returns "real" depth values - which would indeed be
> normalized.
Ok, I guess the format could just be named badly, although Chris makes
a good point about precision, even if the values are normalized.

> Some ATI graphics demos (e.g. Toy Shop).
If those demos have source, it might be useful to look at that for
hints. At the very least this needs tests to determine if the values
are normalized or not.

More information about the wine-devel mailing list