-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add EGL_EXT_device_query_pci #109
base: main
Are you sure you want to change the base?
Conversation
Would it make sense to add queries for the domain/bus/slot ID's as well? |
Why not, but is there a use-case for these? |
One use I can think of would be to distinguish between multiple identical devices. |
It way beyond the problem we're trying to solve here, but it's trivial to implement and conceptually it belongs in the same extension so I'm adding these and re-renaming the spec to |
457aa86
to
58e5081
Compare
As a minor nitpick, the "The query always succeeds and returns EGL_TRUE, and is set appropriately" line probably isn't necessary, since that's the default assumption for EGL functions. Other than generic errors (invalid EGLDeviceEXT handle, out of memory, etc), EGL functions list the errors that they can produce. In this case, it doesn't make much difference, though, since I don't think an implementation could run into any internal errors for those queries. Anything that did go wrong would have gone wrong in eglQueryDevicesEXT instead. Anyway, change that if you want. The spec looks good to me either way. |
Thanks for the feedback; you're right, I'll drop the line. I also was wondering if I should explicitly say that |
I'd say it's obvious enough what each attribute is. |
58e5081
to
38ff3a4
Compare
Change Milestone to "Approved to Merge" when ready and assign to oddhack for Jon to merge. |
@stonesthrow I don't have permission to change the milestones; could you give me permission, or do it for me? Thanks! |
@oddhack: Ready to merge |
Actually can this wait? @evelikov has requested a change of enum values, I'm waiting on @fooishbar to confirm. |
@@ -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_pci { | |||
number 140 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The extension number here and in the spec text will need to be updated when the PR is actually accepted, up through 141 are used at the moment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@1ace @evelikov @fooishbar where does this extension stand - was your issue about enum values resolved? Would be nice to get it finished and published.
Firefox requested to have a way to query the device's vendor PCI ID and device PCI ID, so here's an extension that adds this.
Cross-references:
/cc @rmader