Bug 109218 - PresentPixmap doesn't work with XSync fences, crashes server
Summary: PresentPixmap doesn't work with XSync fences, crashes server
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-03 23:09 UTC by Yuxuan Shui
Modified: 2019-11-27 13:49 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Yuxuan Shui 2019-01-03 23:09:06 UTC
In an experimental branch of compton, I tried using PresentPixmap with xrender to achieve tear free display. I discovered that the XSync fence passed to PresentPixmap never gets triggered, and when I kill compton, the whole server crashes.

I don't have a stack trace, but X server crashed in a function called AttendClient trying to dereference 0x28.

Maybe intel driver only supports fences created via DRI3FenceFromFD. That should've been made clear somewhere (where?), and X server definitely shouldn't crash.
Comment 1 Yuxuan Shui 2019-01-03 23:09:49 UTC
BTW, I suspected the fence because when I don't pass a fence to PresentPixmap, everything seems to work fine.
Comment 2 Yuxuan Shui 2019-01-08 21:55:24 UTC
If you want a testcase, you can try commit 055364431a0706b97c2875d5501dc20dbcf1bdeb of compton.
Comment 3 Martin Peres 2019-11-27 13:49:59 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/issues/159.


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.