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 <ito...@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
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev