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

Fix egl_fence_persistent_buffer deinit on GLES 2.0 #435

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

Conversation

enunes
Copy link
Contributor

@enunes enunes commented Dec 28, 2023

On GLES 2.0 only drivers, the egl_fence_persistent_buffer test fails to create its GLES 3.1 context and an exception is thrown at chooseSingleConfig, which aborts its init early.
The initialization doesn't reach initGLFunctions and GL function pointers are left uninitialized, which causes a segfault and crash in the deinit path.
Fix the deinit path so that it doesn't crash but just reports "No matching EGL config found" like other EGL tests with those drivers.

Affects:
dEQP-EGL.functional.fence_sync.valid.egl_fence_persistent_buffer

This has been crashing on two GLES 2.0 drivers on mesa since this CTS update https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24947 .

On GLES 2.0 only drivers, the egl_fence_persistent_buffer test fails
to create its GLES 3.1 context and an exception is thrown at
chooseSingleConfig, which aborts its init early.
The initialization doesn't reach initGLFunctions and GL function
pointers are left uninitialized, which causes a segfault and crash
in the deinit path.
Fix the deinit path so that it doesn't crash but just reports
"No matching EGL config found" like other EGL tests with those drivers.

Affects:
  dEQP-EGL.functional.fence_sync.valid.egl_fence_persistent_buffer

Signed-off-by: Erico Nunes <[email protected]>
@lordalcol
Copy link
Contributor

This is now being tested and reviewed in Khronos CI.

@okias
Copy link
Contributor

okias commented Jul 17, 2024

How's the testing going?

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

Successfully merging this pull request may close these issues.

3 participants