Re: [PATCH] Implement software DXT1 compression

2011-02-18 Thread Henri Verbeet
On 16 February 2011 23:51, wrote: > Yes, there are bindings, but wouldn't this pose the same legal problems as > libtxc_dxtn? > Probably, but that's more of an issue for distributions than for Wine. Note that using the s3tc support in the closed drivers doesn't change that all that much, you'd ju

Re: [PATCH] Implement software DXT1 compression

2011-02-16 Thread alberto
>I haven't investigated very closely, but my impression is that you >want to use libsquish. I'm not sure if it has C bindings, or if the >API is entirely right for what we need, but maybe they accept patches. Yes, there are bindings, but wouldn't this pose the same legal problems as libtxc_dxtn?

Re: [PATCH] Implement software DXT1 compression

2011-02-15 Thread Henri Verbeet
I haven't investigated very closely, but my impression is that you want to use libsquish. I'm not sure if it has C bindings, or if the API is entirely right for what we need, but maybe they accept patches.

Re: Re: [PATCH] Implement software DXT1 compression

2011-02-15 Thread alberto
Hi Stefan. I'm not really into opengl internals, so I think the best solution for now is to implement 1), and give complete support when the blitting code will be in a better shape. Would this be okay? if (!context->valid) { context_release(context); FIXME("No gl context, c

Re: [PATCH] Implement software DXT1 compression

2011-02-15 Thread Stefan Dösinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 15.02.2011 um 14:39 schrieb albe...@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

Re: Re: [PATCH] Implement software DXT1 compression

2011-02-15 Thread alberto
> 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

Re: Re: [PATCH] Implement software DXT1 compression

2011-02-14 Thread Matteo Bruni
2011/2/14 : > 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, > nvttOu

Re: Re: [PATCH] Implement software DXT1 compression

2011-02-14 Thread alberto
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 outputHandl

Re: [PATCH] Implement software DXT1 compression

2011-02-14 Thread Stefan Dösinger
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 14.02.2011 um 16:50 schrieb albe...@mattea.info: > I would also like some feedback about > the patent situation, e.g. if the patch can be mainlined as it is or if it > would be better to load libtxc_dxtn directly at runtime. I'm afraid neither solu