[PATCH] Implement software DXT1 compression

Matteo Bruni matteo.mystral at gmail.com
Mon Feb 14 17:22:49 CST 2011


2011/2/14  <alberto at mattea.info>:
> Hi Stefan, thanks for your answer. I've checked the nvidia texture tools
> but, sadly, I think it's impossible to use them in wine: while they have c
> bindings, those bindings lack the essential function
> nvttSetOutputOptionsOutputHandler(NvttOutputOptions * outputOptions,
> nvttOutputHandler outputHandler, nvttImageHandler imageHandler)
> (commented out in the headers), so the output can only be written to a
> file.
> What about going the mesa way, where the drivers aren't linked with any
> s3tc library, but load it at runtime if it is present?
> Any idea is welcome.
>

An idea that was proposed before was to delegate the conversion (and
the patents burden) to the OpenGL drivers, something like using
glCompressedTexImage2D() / glGetCompressedTexImage(). Not sure whether
there are hidden issues with that approach (except, well, requiring an
OpenGL driver with compressed textures support), but at a first glance
it doesn't look as something particularly hard to do.



More information about the wine-devel mailing list