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 726313 - stage-cogl: Fix feature check in clutter_stage_cogl_redraw
stage-cogl: Fix feature check in clutter_stage_cogl_redraw
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2014-03-14 09:46 UTC by drago01
Modified: 2014-03-14 16:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
stage-cogl: Fix feature check in clutter_stage_cogl_redraw (1.24 KB, patch)
2014-03-14 09:46 UTC, drago01
none Details | Review
stage-cogl: Fix feature check in clutter_stage_cogl_redraw (1.18 KB, patch)
2014-03-14 09:48 UTC, drago01
committed Details | Review

Description drago01 2014-03-14 09:46:35 UTC
See patch, just noticed it while reading through the code. While I don't know
if there is any real case / driver where this causes clipped redraws not
to work ... we should still be correct here.
Comment 1 drago01 2014-03-14 09:46:37 UTC
Created attachment 271843 [details] [review]
stage-cogl: Fix feature check in clutter_stage_cogl_redraw

We do not strictly require COGL_WINSYS_FEATURE_SWAP_REGION to be able to do
clipped redraws they work with only COGL_WINSYS_FEATURE_BUFFER_AGE as well.

So fix the check to enable clipped redraws when we have either one of the
two features.

We do not strictly require COGL_WINSYS_FEATURE_SWAP_REGION to
Comment 2 drago01 2014-03-14 09:48:01 UTC
(In reply to comment #0)
> See patch, just noticed it while reading through the code. While I don't know
> if there is any real case / driver where this causes clipped redraws not
> to work ... we should still be correct here.

Actually there is:

 /* The KMS winsys doesn't support swap region */
      vtable.onscreen_swap_region = NULL;

So this is required to make them work under wayland on top of KMS.
Comment 3 drago01 2014-03-14 09:48:34 UTC
Created attachment 271844 [details] [review]
stage-cogl: Fix feature check in clutter_stage_cogl_redraw

We do not strictly require COGL_WINSYS_FEATURE_SWAP_REGION to be able to do
clipped redraws they work with only COGL_WINSYS_FEATURE_BUFFER_AGE as well.

So fix the check to enable clipped redraws when we have either one of the
two features.


Fix commit message.
Comment 4 Emmanuele Bassi (:ebassi) 2014-03-14 16:52:26 UTC
Review of attachment 271844 [details] [review]:

the patch looks good to me.

the commit message is still a bit wonky; probably something like this:

'''
We do not strictly require the 'swap-region' Cogl feature in order to use clipped redraws: they work equally well with just the 'buffer-age' Cogl feature.
'''
Comment 5 drago01 2014-03-14 16:57:48 UTC
Pushed with fixed commit message.

Attachment 271844 [details] pushed as 06387c3 - stage-cogl: Fix feature check in clutter_stage_cogl_redraw