Skip to content

Commit

Permalink
add EGL_EXT_device_query_pci_id
Browse files Browse the repository at this point in the history
  • Loading branch information
1ace committed Jul 3, 2020
1 parent d7ddb16 commit 6392f9b
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 3 deletions.
8 changes: 6 additions & 2 deletions api/EGL/eglext.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ extern "C" {
** used to make the header, and the header can be found at
** http://www.khronos.org/registry/egl
**
** Khronos $Git commit SHA1: ad06e1c38e $ on $Git commit date: 2020-04-09 18:40:05 +0200 $
** Khronos $Git commit SHA1: 1872184222 $ on $Git commit date: 2020-06-10 00:11:35 +0200 $
*/

#include <EGL/eglplatform.h>

#define EGL_EGLEXT_VERSION 20200505
#define EGL_EGLEXT_VERSION 20200702

/* Generated C header for:
* API: egl
Expand Down Expand Up @@ -707,6 +707,10 @@ EGLAPI EGLBoolean EGLAPIENTRY eglQueryDisplayAttribEXT (EGLDisplay dpy, EGLint a
#define EGL_EXT_device_query 1
#endif /* EGL_EXT_device_query */

#ifndef EGL_EXT_device_query_vendor
#define EGL_EXT_device_query_vendor 1
#endif /* EGL_EXT_device_query_vendor */

#ifndef EGL_EXT_gl_colorspace_bt2020_linear
#define EGL_EXT_gl_colorspace_bt2020_linear 1
#define EGL_GL_COLORSPACE_BT2020_LINEAR_EXT 0x333F
Expand Down
6 changes: 6 additions & 0 deletions api/egl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2429,6 +2429,12 @@
<command name="eglQueryDisplayAttribEXT"/>
</require>
</extension>
<extension name="EGL_EXT_device_query_vendor" supported="egl">
<require>
<enum name="EGL_VENDOR"/>
<enum name="EGL_DEVICE_EXT"/>
</require>
</extension>
<extension name="EGL_EXT_gl_colorspace_bt2020_linear" supported="egl">
<require>
<enum name="EGL_GL_COLORSPACE_BT2020_LINEAR_EXT"/>
Expand Down
77 changes: 77 additions & 0 deletions extensions/EXT/EGL_EXT_device_query_pci_id.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
Name

EXT_device_query_pci_id

Name Strings

EGL_EXT_device_query_pci_id

Contributors

Eric Engestrom (eric 'at' engestrom.ch)

Contact

Eric Engestrom (eric 'at' engestrom.ch)

Status

Draft

Version

Version 1, Jun 06, 2020

Number

EGL Extension #140

Extension Type

EGL device extension

Dependencies

This extension is written against the language of EGL 1.5 as
modified by EGL_EXT_device_query.

EGL_EXT_device_query is required.

Overview

This extension adds a simple way to query the PCI vendor ID and device ID.

IP Status

No known claims.

New Types

None.

New Procedures and Functions

None.

New Tokens

None.

Changes to section 3.2 (Devices)

Replace the paragraph immediately following the prototype for
eglQueryDeviceAttribEXT:

<attribute> may be either EGL_VENDOR or EGL_DEVICE_EXT. On success,
EGL_TRUE is returned, and the EGL device's PCI vendor ID or device ID
is returned in <value>. If the EGL device is not on a PCI bus, or is not
a hardware device at all, EGL_FALSE is returned and <value> is unchanged.

Issues

None

Revision History

Version 1, Jun 06, 2020 (Eric Engestrom)
- Initial Draft
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,8 @@
</li>
<li value=139> <a href="extensions/NV/EGL_NV_stream_consumer_eglimage.txt">EGL_NV_stream_consumer_eglimage</a>
</li>
<li value=140> <a href="extensions/EXT/EGL_EXT_device_query_vendor.txt">EGL_EXT_device_query_vendor</a>
</li>
</ol>

<h6> Providing Feedback on the Registry </h6>
Expand Down
7 changes: 6 additions & 1 deletion registry.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -719,4 +719,9 @@ extension EGL_NV_stream_consumer_eglimage {
flags public
filename extensions/NV/EGL_NV_stream_consumer_eglimage.txt
}
# Next free extension number: 140
extension EGL_EXT_device_query_vendor {
number 140
flags public
filename extensions/EXT/EGL_EXT_device_query_vendor.txt
}
# Next free extension number: 141

0 comments on commit 6392f9b

Please sign in to comment.