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

GL_ARB_cl_event: workaround via glFenceSync during replay #856

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stgatilov
Copy link
Contributor

@stgatilov stgatilov commented Jan 18, 2023

When replaying glCreateSyncFromCLeventARB, make a typical call to glFenceSync instead.
That would create a sync object which can be waited for and deleted, so from OpenGL view it behaves exactly as desired.
(Of course it does not perform any synchronization with OpenCL context since we don't record/replay OpenCL)

sgatilov added 2 commits January 18, 2023 14:56
This enough to keep program going despite absence of OpenCL context and any data coming from it.
@stgatilov
Copy link
Contributor Author

Not sure in what I should pass to trace::FunctionSig and trace::Call constructors.

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.

1 participant