-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
129 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
Name | ||
|
||
EXT_device_query_pci | ||
|
||
Name Strings | ||
|
||
EGL_EXT_device_query_pci | ||
|
||
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. | ||
|
||
The EGL device must be a PCI device. | ||
|
||
Overview | ||
|
||
This extension adds a simple way to query a few PCI attributes from an EGL Device, | ||
namely its vendor and device PCI ID, and its PCI domain/bus/slot/function. | ||
|
||
IP Status | ||
|
||
No known claims. | ||
|
||
New Types | ||
|
||
None. | ||
|
||
New Procedures and Functions | ||
|
||
None. | ||
|
||
New Tokens | ||
|
||
Accepted as the <attribute> argument of eglQueryDeviceAttribEXT: | ||
|
||
EGL_QUERY_PCI_VENDOR_ID_EXT 0x3290 | ||
EGL_QUERY_PCI_DEVICE_ID_EXT 0x3291 | ||
EGL_QUERY_PCI_DOMAIN_EXT 0x3292 | ||
EGL_QUERY_PCI_BUS_EXT 0x3293 | ||
EGL_QUERY_PCI_SLOT_EXT 0x3294 | ||
EGL_QUERY_PCI_FUNCTION_EXT 0x3295 | ||
|
||
Changes to section 3.2 (Devices) | ||
|
||
Replace the paragraph immediately following the prototype for | ||
eglQueryDeviceAttribEXT: | ||
|
||
<attribute> must be one of EGL_QUERY_PCI_VENDOR_ID_EXT, | ||
EGL_QUERY_PCI_DEVICE_ID_EXT, EGL_QUERY_PCI_DOMAIN_EXT, | ||
EGL_QUERY_PCI_BUS_EXT, EGL_QUERY_PCI_SLOT_EXT or | ||
EGL_QUERY_PCI_FUNCTION_EXT. The query always succeeds and returns | ||
EGL_TRUE, and <value> is set appropriately. | ||
|
||
Issues | ||
|
||
1. Should the extension be exposed on a device that might not be on | ||
a PCI bus, and fail queries? | ||
|
||
RESOLVED: No, if the extension is exposed then the device *is* on | ||
a PCI bus, and all associated queries will succeed. | ||
|
||
Revision History | ||
|
||
Version 1, Jun 06, 2020 (Eric Engestrom) | ||
- Initial Draft |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters