Name EGL_MESA_device_hash Name Strings EGL_MESA_device_hash Contributors Jonny Lamb Contact Jonny Lamb Status Draft Version Version 1, 2015-07-22 Number EGL Extension #XXX Extension Type EGL device extension Dependencies This extension is written against the wording of EGL 1.5 as modified by EGL_EXT_device_query. EGL_EXT_device_query is required. Overview The EGLDeviceEXT object is useful for referring to a particular device on the system. However, this handle is only valid for the current process. For referring to devices across different processes on the same system an integer value is required. Additionally, when using functions with EGLint argument types, it is currently not possible to refer to EGLDeviceEXT objects. An integer value for said objects is necessary to enable this functionality. The argument of eglGetPlatformDisplay is an example of a function with an argument of type EGLint. New Types None New Procedures and Functions None New Tokens Accepted as a queried in eglQueryDeviceAttribEXT: EGL_DEVICE_HASH_MESA 0x31E0 Additions to the EGL 1.5 Specification In section 3.2 "Devices", replace the paragraph immediately following the prototype for eglQueryDeviceAttribEXT with the following: "On success, EGL_TRUE is returned and the requested attribute value is returned in . Currently the only valid value for is EGL_DEVICE_HASH_MESA which returns in an EGLint hash value for the EGLDeviceEXT object given in . This hash value can be used for comparing EGLDeviceEXT objects across different processes on the same system and for when an EGL function argument type is EGLint instead of EGLattrib. With a successful call using EGL_DEVICE_HASH_MESA as the returned EGLint is always non-zero. The method used to calculate the hash for a EGLDeviceEXT is left up to the implementation. Compatibility between hash values can only be assumed with the same version of the same implementation running on the same system." Issues None Revision History Version 1, 2015-7-22 (Jonny Lamb) - Initial draft