Skip to content
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

hwdec_d3d11egl: EGL_EXT_device_query is client extension #11142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wnoun
Copy link
Contributor

@wnoun wnoun commented Jan 13, 2023

close #10212

const char *exts = eglQueryString(egl_display, EGL_EXTENSIONS);
if (!gl_check_extension(exts, "EGL_ANGLE_d3d_share_handle_client_buffer") ||
!gl_check_extension(exts, "EGL_ANGLE_stream_producer_d3d_texture") ||
!(gl_check_extension(gl->extensions, "GL_OES_EGL_image_external_essl3") ||
gl->es == 200) ||
!gl_check_extension(exts, "EGL_EXT_device_query") ||
!(gl_check_extension(client_exts, "EGL_EXT_device_query") ||
gl_check_extension(exts, "EGL_EXT_device_query")) ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if its a client extension why keep the second check?

Copy link
Member

@jeeb jeeb Jan 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand the comments in #10212 correctly, before November 2020 ANGLE exposed this in the old location, while current binaries like the one I just tested this with (https://github.com/google/gfbuild-angle/releases/tag/github%2Fgoogle%2Fgfbuild-angle%2Ff810e998993290f049bbdad4fae975e4867100ad) expose it in the new location.

This PR seems to attempt to support both ages of libraries.

edit: My slight personal opinion is that since it's already been two years and the new location seems to be the technically correct one, we might as well switch to supporting the new version only at this point?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

supporting old version is trivial work. some users may use outdated angle provided by framework(eg. qt?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to have gotten completely lost but given that's been yet another two years, I think only supporting the new location at this point is the way to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

hwdec_d3d11egl.c fails to init with current versions of ANGLE
4 participants