Bug 68457 - cairo_dfb_surface does not unlock directfb surface after lock
Summary: cairo_dfb_surface does not unlock directfb surface after lock
Status: RESOLVED NOTABUG
Alias: None
Product: cairo
Classification: Unclassified
Component: directfb backend (show other bugs)
Version: 1.12.14
Hardware: All All
: medium critical
Assignee: cairo-bugs mailing list
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-22 23:38 UTC by frank.chou
Modified: 2013-08-23 08:12 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description frank.chou 2013-08-22 23:38:23 UTC

    
Comment 1 frank.chou 2013-08-22 23:40:23 UTC
There is a bug in Cairo DirectFB backend. After applying the patch from the link below to cairo-1.12.14
http://cgit.freedesktop.org/cairo/commit/?id=631bf299256e11a17511977f357e0353fb5615f7

The directfb surface is locked in _cairo_dfb_surface_map_to_image() but not unlocked in _cairo_dfb_surface_unmap_image(). Therefore, it is preventing the application from using that directfb surface, such as surface->flip.
Comment 2 Chris Wilson 2013-08-23 08:12:34 UTC
Yes, that is quite deliberate. Note that you are expected to call cairo_surface_flush() before manipulating any cairo surface directly (and has been in the documented interface since 1.0).


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.