Summary: | FS-UAE waits forever with glClientWaitSync() when using glFenceSync() on amdgpu/radeonsi | ||
---|---|---|---|
Product: | Mesa | Reporter: | Lem <lem.jjr> |
Component: | Drivers/Gallium/radeonsi | Assignee: | Default DRI bug account <dri-devel> |
Status: | RESOLVED FIXED | QA Contact: | Default DRI bug account <dri-devel> |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
apitrace of fs-uae waiting forever after using glFenceSync()
possible fix |
Description
Lem
2016-08-24 09:06:57 UTC
Created attachment 126023 [details] [review] possible fix Could you please try this patch? Hi Marek, Thanks for the patch. I *think* it worked. I fumbled my way through building mesa (git cloning and applying the patch was easy), then copying just the new mesa/lib/gallium/radeonsi_dri.so to /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so , leaving everything else (binaries, libraries) as it is with the Padoka PPA, and now fs-uae will run with fences enabled. I haven't done any other tests (games etc) for any regressions. Cheers I just verified it with a new apitrace. There is indeed glFenceSync() being called. Frame 3 now looks like: 1510 @0 glFenceSync(condition = GL_SYNC_GPU_COMMANDS_COMPLETE, flags = 0) = 0x8c47bf0 1511 @0 glFlush() 1512 @0 glClientWaitSync(sync = 0x8c47bf0, flags = GL_SYNC_FLUSH_COMMANDS_BIT, timeout = 0) = GL_TIMEOUT_EXPIRED 1513 @0 glClientWaitSync(sync = 0x8c47bf0, flags = 0x0, timeout = 0) = GL_ALREADY_SIGNALED 1514 @0 glBegin(mode = GL_QUADS) 1515 @0 glTexCoord2d(s = 0, t = nan) ... 1523 @0 glEnd() 1524 @0 glXSwapBuffers(dpy = 0x88db6a0, drawable = 83886088) and onto Frame 4, and so forth. I pushed the fix. Closing. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.