[PATCH 1/2] wined3d: Try to detect the polygon offset scale value.
stefandoesinger at gmail.com
Thu Jul 30 07:23:04 CDT 2015
-----BEGIN PGP SIGNED MESSAGE-----
Am 2015-07-30 um 13:56 schrieb Henri Verbeet:
> Ideally this would be a format property. In practice it probably
> works because we only use 24 and 32 bit depth formats, and the
> hardware probably either only distinguishes between 16 and 24/32,
> or just doesn't support 32.
I'm actually quite happy that we don't have to run this test for every
format, mostly due to startup performance concerns...
Some Mesa drivers (r300g if I remember right) have some 16 vs 24 bit
code in glPolygonOffset, but in practise it didn't matter. I haven't
really debugged the driver to find out what's going wrong. (r200 has a
suspiciously commented out offset *= 2, which is probably why it ends
up wanting 2^24 instead of 2^23 like all the other drivers)
One suspicion I checked is that the driver looks at the GLX format
instead of the FBO format, but changing the GLX format we request
didn't influence the outcome.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-----END PGP SIGNATURE-----
More information about the wine-devel