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 624571 - Initial Clutter 1.4 support
Initial Clutter 1.4 support
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on: 624757
Blocks: 612599
 
 
Reported: 2010-07-16 20:32 UTC by drago01
Modified: 2010-08-10 06:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Check for TFP usage after actually setting the pixmap (1.61 KB, patch)
2010-07-16 20:32 UTC, drago01
rejected Details | Review
[St] Switch to using CoglFramebuffer / CoglMaterial (1.83 KB, patch)
2010-07-16 20:33 UTC, drago01
none Details | Review
Drop custom ClutterActor.contains (1.01 KB, patch)
2010-07-16 20:33 UTC, drago01
committed Details | Review
[St] Use CoglHandle rather than CoglHandle* (1.56 KB, patch)
2010-07-22 16:56 UTC, drago01
committed Details | Review

Description drago01 2010-07-16 20:32:17 UTC
Track changes needed for switching to clutter 1.4

With this patches applied there are still some remaining issues:

*) The shader code generator needs to be fixed to support locales not using "." as decimal separator see: http://bugzilla.clutter-project.org/show_bug.cgi?id=2219
This has no runtime impact other than a giant spam wave in stderr (as it falls back to the fixed function code that was in use in 1.2)

*) The transition code causes some weird texture flickering (have not really verified it yet but it seems that the flickering only occurs when a transition effect is active / completed)  

Patches for some straight forward issue are attached.
Comment 1 drago01 2010-07-16 20:32:41 UTC
Created attachment 166039 [details] [review]
Check for TFP usage after actually setting the pixmap

Starting with clutter 1.4 clutter / cogl only knows whether TFP is in use after
setting the pixmap, so doing the check before setting the pixmap will just
lead to a wrong message.
Comment 2 drago01 2010-07-16 20:33:05 UTC
Created attachment 166040 [details] [review]
[St] Switch to using CoglFramebuffer / CoglMaterial

Needed to build against 1.4, but breaks backwards compatibility so
bump the requirement.
Comment 3 drago01 2010-07-16 20:33:29 UTC
Created attachment 166041 [details] [review]
Drop custom ClutterActor.contains

Clutter 1.4 does provide a native implementation
Comment 4 Dan Winship 2010-07-19 16:29:38 UTC
Comment on attachment 166039 [details] [review]
Check for TFP usage after actually setting the pixmap

please file this part as a mutter bug
Comment 5 Dan Winship 2010-07-19 16:30:39 UTC
Comment on attachment 166041 [details] [review]
Drop custom ClutterActor.contains

ok to commit after we move to 1.4 (for which I'm misusing "commit_after_freeze")
Comment 6 drago01 2010-07-22 16:56:58 UTC
Created attachment 166404 [details] [review]
[St] Use CoglHandle rather than CoglHandle*

This breaks building on 1.4, and has always been wrong anyway.
Comment 7 drago01 2010-07-22 17:45:49 UTC
(In reply to comment #0)

> *) The transition code causes some weird texture flickering (have not really
> verified it yet but it seems that the flickering only occurs when a transition
> effect is active / completed) 

After doing some testing I can confirm that the transition code is indeed to blame.

In particular

"cogl_material_set_layer (priv->material, 0, priv->new_texture);" in setup_framebuffers() seems to be causing the flickering. (st-theme-node-transition.c)

I still don't know why though, Robert said that we will take a look at it.
Comment 8 drago01 2010-07-26 19:57:07 UTC
Comment on attachment 166404 [details] [review]
[St] Use CoglHandle rather than CoglHandle*

Pushed as per IRC review.
Comment 9 Owen Taylor 2010-08-09 19:21:23 UTC
http://bugzilla.clutter-project.org/show_bug.cgi?id=2261 has a patch that fixes the remaining problem (or at least points to the right fix).

Basically a simple logic error in tracking what was bound to texture unit 1 - so the texture from the interpolation effect was leaking into other actors that also use that texture unit.
Comment 10 drago01 2010-08-10 06:39:59 UTC
(In reply to comment #9)
> http://bugzilla.clutter-project.org/show_bug.cgi?id=2261 has a patch that fixes
> the remaining problem (or at least points to the right fix).
> 
> Basically a simple logic error in tracking what was bound to texture unit 1 -
> so the texture from the interpolation effect was leaking into other actors that
> also use that texture unit.

Good catch, Robert suggested that something might be wrong with the flushing but I couldn't track it down.
Comment 11 drago01 2010-08-10 06:42:41 UTC
Attachment 166041 [details] pushed as 3fb7cce - Drop custom ClutterActor.contains