After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 754540 - a few cogl fix ups
a few cogl fix ups
Status: RESOLVED FIXED
Product: cogl
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2015-09-03 19:34 UTC by Ray Strode [halfline]
Modified: 2015-09-03 21:29 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
kms-winsys: use correct surface format (5.31 KB, patch)
2015-09-03 19:34 UTC, Ray Strode [halfline]
committed Details | Review
kms-winsys: clean up error handling in _cogl_winsys_renderer_connect (6.16 KB, patch)
2015-09-03 19:34 UTC, Ray Strode [halfline]
committed Details | Review
kms-winsys: don't disable page flipping on EACCES (4.21 KB, patch)
2015-09-03 19:34 UTC, Ray Strode [halfline]
committed Details | Review

Description Ray Strode [halfline] 2015-09-03 19:34:30 UTC
These are the patches from bug 753531 that should still go
in I think.
Comment 1 Ray Strode [halfline] 2015-09-03 19:34:39 UTC
Created attachment 310616 [details] [review]
kms-winsys: use correct surface format

gbm confusingly has two different format types, and cogl
is using the wrong one in some of its calls to gbm_surface_create

This commit fixes the calls that are wrong.
Comment 2 Ray Strode [halfline] 2015-09-03 19:34:42 UTC
Created attachment 310617 [details] [review]
kms-winsys: clean up error handling in _cogl_winsys_renderer_connect

If cogl fails to open the drm device, initialize gbm, or open the
egl display, then it closes the drm fd, uninitializes gbm, closes the
display and then calls _cogl_winsys_renderer_disconnect which does
most of those things again, on the, now deinitialized, members.

This commit removes the explicit failure handling in renderer_connect and
defers cleanup to disconnect.
Comment 3 Ray Strode [halfline] 2015-09-03 19:34:45 UTC
Created attachment 310618 [details] [review]
kms-winsys: don't disable page flipping on EACCES

If the user switches VTs in the middle of a page flip, the
page flip operation may fail with EACCES. page flipping will
work next time the VT becomes active, so we shouldn't disable
page flipping in that case.
Comment 4 Emmanuele Bassi (:ebassi) 2015-09-03 21:26:45 UTC
Review of attachment 310617 [details] [review]:

Looks good.
Comment 5 Emmanuele Bassi (:ebassi) 2015-09-03 21:27:40 UTC
Review of attachment 310616 [details] [review]:

Looks good.
Comment 6 Emmanuele Bassi (:ebassi) 2015-09-03 21:28:34 UTC
Review of attachment 310618 [details] [review]:

Okay.
Comment 7 Ray Strode [halfline] 2015-09-03 21:29:48 UTC
Attachment 310616 [details] pushed as 181176b - kms-winsys: use correct surface format
Attachment 310617 [details] pushed as 78c44ab - kms-winsys: clean up error handling in _cogl_winsys_renderer_connect
Attachment 310618 [details] pushed as 6bd49c3 - kms-winsys: don't disable page flipping on EACCES