[Mesa-dev] [PATCH] [RFC] MESA_shading_language_130: is this it?

Eric Anholt eric at anholt.net
Tue Dec 2 12:51:14 PST 2014


Ian Romanick <idr at freedesktop.org> writes:

> On 11/26/2014 06:09 PM, Dave Airlie wrote:
>> Glamor is 4x faster on my ILK using glsl 130 at core text using
>> x11perf -ftext.
>> 
>> Ian started writing a spec for this extension a while back, which seems like
>> most of the work, this patch seems to do enough, to advertise GLSL 1.30.
>
> Yeah... I started writing the extension when Chris Forbes was working on
> adding GLSL 1.30 for Ironlake.  I seem to recall that gl_ClipDistance
> still does not work for ILK, and difficulties with that caused Chris to
> abandon the project.  This was over a year ago, so the details are a bit
> fuzzy.
>
> The common Mesa parts look good, though.  If we want to pursue this, I
> can finish up the extension spec and get it published.

I'd definitely be interested -- integers are really useful for 2D
rendering (as evidenced by Dave's numbers), and I can do them in VC4.
What I see in a glance through 1.30 that I don't have in my 2.1
implementation is:

- Size queries (but I can fake it with uniforms)
- Texture arrays (can't fake that without some real craziness).
- Texture offsets (could fake with uniforms and some math?)
- gl_VertexID (could fake with a cached VBO of integers I think.

I'd be interested in whether the MESA_1.30 spec would require support
for extensions that expose those things, or if I could expose it without
doing all of that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20141202/41ccc972/attachment.sig>


More information about the mesa-dev mailing list