Tuesday, May 13, 2014

Freedreno turns gl 2.0 today!

I've just pushed to upstream mesa support for occlusion query, which means that freedreno now advertises OpenGL 2.0:

OpenGL vendor string: freedreno
OpenGL renderer string: Gallium 0.4 on FD320
OpenGL version string: 2.0 Mesa 10.3.0-devel (git-00fcf8b)
OpenGL shading language version string: 1.20

Note that this is desktop OpenGL.  Freedreno has supported OpenGLES 2.0 for quite a long time now.

Implementing occlusion query was a bit interesting due to the way the tiling works on adreno.  We have to track query results per tile.  I've written up a bit of a description about how it works on the wiki: Hardware Queries

Looks like next up is sRGB support which gets us up to GL 2.1.  And then the fun begins with work on GL/GLES 3.0 :-)

EDIT: turns out sRGB texture support is pretty easy.  So now we are GL 2.1.  (GL/GLES 3.0 also needs sRGB render target support which is a bit more involved.  But there that is just one of several features needed for 3.0).


  1. Wow, that's a great news! Shame on qualcomm devs

  2. Dear Rob:

    Recently,AMD released its white paper of cutting-edge api Mantle.Its simplified and performance-enhancing features amazed a lot.

    Hmmm..It must be thought that mobile platform be absorb its philosophy and adopt some features from it. Will the free and open-source drivers like freedreno,Gallium3D the best place to show it?

    relevant details: http://www.amd.com/Documents/Mantle_White_Paper.pdf

    1. I suppose in principle it may be possible to implement mantle as a gallium state tracker. I don't know if we have enough details about the mantle API to say for sure, beyond slide-shows and whitepapers.

      With gallium there certainly is, I think, room for something with less overhead (at least compared to how a lot of the open src games seem to use gl)..

  3. Hi. I really enjoyed my brief visit on your site and I’ll be sure to be back for more.
    Can I contact you through email address?

    Please email me back.

    kevincollins1011 gmail.com

  4. hey rob... thanks for the recent updates on freedreno! any updates on the support for dsi in drm msm? I am looking to bring up onboard lcd panel on the SYS6440 with freedreno. cheers!