[PATCH] Implement software DXT1 compression
stefandoesinger at gmx.at
Tue Feb 15 14:18:14 CST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Am 15.02.2011 um 14:39 schrieb alberto at mattea.info:
> Good idea. This new patch implements this approach. It seems to be working
> perfectly at least with the nvidia blob. It is also much smaller than the
> previous one, and doesn't require hacks like inverting colors and so on.<dxt1.patch>
It has one major architectural problem however. You need a GL context, but the SW conversion code cannot use one because it may be called from surface_gdi.c, which works without opengl. There are two ways out:
1) The easy one is to lift this restriction and just handle a context_acquire failure(ok, context_acquire needs some extensions for that). Error handling could just look like FIXME("no gl, bad luck"). But I think that is pretty ugly.
2) Implement the s3tc blits in the opengl blitting code in surface.c. Unfortunately the opengl blitting code is a mess, and adding s3tc blits won't make it better. To allow this we'll need to clean it up first. Rockerick was working on that but dropped the ball because other work interfered.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
-----END PGP SIGNATURE-----
More information about the wine-devel