[Mesa-dev] [PATCH 01/29] mesa: Add an implementation of a master convert function.

Michel Dänzer michel at daenzer.net
Fri Nov 21 00:40:38 PST 2014

On 21.11.2014 17:07, Iago Toral wrote:
> On Thu, 2014-11-20 at 11:10 -0800, Jason Ekstrand wrote:
>> On Thu, Nov 20, 2014 at 1:48 AM, Iago Toral <itoral at igalia.com> wrote:
>>          Just out of curiosity: is there any gain in avoiding the GL
>>          types in the
>>          conversion code?
>> As I said in my reply to Jose on the 00/20 patch, we would like to
>> eventually move the format conversion stuff to a common helper library
>> that can be shared by mesa main and the gallium code.  If we are going
>> to do that, then we don't want any GL dependencies.
> Yes, I know, I was just wondering why Mesa and Gallium would need/want
> to avoid the GL dependencies in that helper library, since clients of
> that library would usually be things like glTexImage or glReadPixels and
> these deal with GL types.

Since OpenGL is only one out of many APIs provided by state trackers on 
top of Gallium (some of which have nothing to do with OpenGL), code 
below the Gallium interface using GL types directly is a layering violation.

Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer

More information about the mesa-dev mailing list