[Piglit] [PATCH 10/29] glapi: Read list of core extensions

Chad Versace chad.versace at linux.intel.com
Fri May 25 15:20:14 PDT 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/25/2012 09:19 AM, Paul Berry wrote:
> On 21 May 2012 11:08, Pauli Nieminen <pauli.nieminen at linux.intel.com <mailto:pauli.nieminen at linux.intel.com>> wrote:
> 
>     There is extensions that have been pulled as is into core. Those
>     extensions only declare extension functions in gl.spec. To allow stub
>     loader know that required function is supported because of GL version we
>     need to add core version to the extension functions.
> 
> 
> Can you explain in more detail why this is necessary?  I thought that when an extension is pulled into core, the implementation was required to list that extension in its extension string.  So the stub loader should already know that these functions are supported.

The spec states that implementations are required to
continue advertising the extension string after it becomes
core. From the OpenGL 3.2 (Core Profile) spec, Section I.3.2:

  ARB extensions can be promoted to required core features in later revisions of
  OpenGL. When this occurs, the extension specifications are merged into the core
  specification. Functions and enumerants that are part of such promoted extensions
  will have the ARB affix removed.

  GL implementations of such later revisions should continue to export the name
  strings of promoted extensions in the EXTENSIONS strings and continue to support
  the ARB-affixed versions of functions and enumerants as a transition aid.

I don't know, though, how consistently drivers adhere to this requirement.

- ----
Chad Versace
chad.versace at linux.intel.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPwAWaAAoJEAIvNt057x8iIIQP/iI0Z0WwXevds6LWMxGKfj47
J6fvFmVBR6aJ2exQgeiJENwD/iDs+OZOwY0luPMFy4hbOcUN8wudpbsfQIXnRTTK
45tcH/BZQ4QycZUcBu+fxOrT3GSVwcZYPins6Agk3iDFw5S9MgeqarV3UGXqtUmt
IwsmBlPrmET4pDyugRDioP4IV9KB385X4Fo68NEvgv8yaseL0ESV6FSIZfBnaxY1
DTyQbHfVwFUtrZHhDxmItNecDU42pxPQJiki9TMCqiWYBx/gR5Qm6lBV41Ysyi1y
AyBWYsOZ7R2fIavqAzlFQvlpxChN0g/Ag1dBjn6yyB3pISEkzwcPD51GJaanSUyt
pAxnjglOwfV0E5ByBEMdt000OqQxX3iynXHLV46xI6ELUyN1GaD0PuRSRtjSbbSm
1QDIOY3USDVWCTti6XB1dVktBw3mztReHscsjHROKJC9VBh8jK8HUGYy5rbt3oMB
/w4kcpCBf6cHGtAFovl1bkA9NSsn37yUMAac/jcJND1TDni9oRJ/X7hXaiYYlE2L
rYufb6bk6rwL41zkHz8wLIdro1HdHYrrrBsDtN1+FvUvs6+eogVRfmkXKRc2My3F
NCvPAou+gBilKVvCfcSU/b9BrEllw61wJbyfc8K5FyPDUS6/ssi68BDmkFZKeFfE
TDkp4tkr6N8eZvTKICFE
=wiHB
-----END PGP SIGNATURE-----


More information about the Piglit mailing list