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 754256 - info: support getting renderer string from EGL/GLESv2
info: support getting renderer string from EGL/GLESv2
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on: 686806
Blocks:
 
 
Reported: 2015-08-28 17:52 UTC by Cosimo Cecchi
Modified: 2016-04-09 04:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
info: support getting renderer string from EGL/GLESv2 (16.91 KB, patch)
2015-08-28 17:52 UTC, Cosimo Cecchi
none Details | Review
info: remove unused code (1.12 KB, patch)
2016-04-08 23:22 UTC, Cosimo Cecchi
committed Details | Review
info: remove unused defines (856 bytes, patch)
2016-04-08 23:22 UTC, Cosimo Cecchi
committed Details | Review
info: fetch renderer information from gnome-session (5.62 KB, patch)
2016-04-08 23:22 UTC, Cosimo Cecchi
committed Details | Review

Description Cosimo Cecchi 2015-08-28 17:52:19 UTC
See attached patch.
Comment 1 Cosimo Cecchi 2015-08-28 17:52:22 UTC
Created attachment 310214 [details] [review]
info: support getting renderer string from EGL/GLESv2

Split out the routine to fetch the GLX renderer string into a helper
program and add another one for EGL/GLESv2.
We will still prefer the GLX version, but when it returns a bad string
(like "Software Rasterizer"), we use the EGL one.
This will produce good results on e.g. ARM Mali platforms.
Comment 2 Bastien Nocera 2015-08-31 12:31:26 UTC
Couldn't we reuse the gnome-session-is-accelerated helper from bug 686806 for that, instead of having 2 of those helpers?
Comment 3 Cosimo Cecchi 2015-08-31 16:30:41 UTC
The gnome-session-is-accelerated helper also doesn't know about EGL/GLES at all right now, and I was planning to add support for it there.
How did you imagine that helper being used here? Maybe with the addition of a --print-renderer command line option?

In any case, while I'm not in a rush to get this patch in, I don't know how much time I will be able to spend on the gnome-session work in the coming week, so perhaps we could do that as an additional step.
Comment 4 Bastien Nocera 2015-08-31 17:59:25 UTC
(In reply to Cosimo Cecchi from comment #3)
> The gnome-session-is-accelerated helper also doesn't know about EGL/GLES at
> all right now,

That's what's in the other bug.

> and I was planning to add support for it there.
> How did you imagine that helper being used here? Maybe with the addition of
> a --print-renderer command line option?

Something like that, yes.

> In any case, while I'm not in a rush to get this patch in, I don't know how
> much time I will be able to spend on the gnome-session work in the coming
> week, so perhaps we could do that as an additional step.

Given that you can't even get in a EGL/GLES session right now (due to the missing support in gnome-session), is it worth breaking freezes for this?
Comment 5 Cosimo Cecchi 2015-08-31 18:10:25 UTC
(In reply to Bastien Nocera from comment #4)
> (In reply to Cosimo Cecchi from comment #3)
> > The gnome-session-is-accelerated helper also doesn't know about EGL/GLES at
> > all right now,
> 
> That's what's in the other bug.

OK - which bug are you referring to here?
 
> > and I was planning to add support for it there.
> > How did you imagine that helper being used here? Maybe with the addition of
> > a --print-renderer command line option?
> 
> Something like that, yes.
> 
> > In any case, while I'm not in a rush to get this patch in, I don't know how
> > much time I will be able to spend on the gnome-session work in the coming
> > week, so perhaps we could do that as an additional step.
> 
> Given that you can't even get in a EGL/GLES session right now (due to the
> missing support in gnome-session), is it worth breaking freezes for this?

Cool; not at all worth breaking freezes for this, and I'll try to find some time to work on the gnome-session integration.
Comment 6 Bastien Nocera 2015-08-31 18:15:04 UTC
(In reply to Cosimo Cecchi from comment #5)
> (In reply to Bastien Nocera from comment #4)
> > (In reply to Cosimo Cecchi from comment #3)
> > > The gnome-session-is-accelerated helper also doesn't know about EGL/GLES at
> > > all right now,
> > 
> > That's what's in the other bug.
> 
> OK - which bug are you referring to here?

bug 686806, mentioned in comment 2.
Comment 7 Cosimo Cecchi 2016-04-08 23:22:10 UTC
Created attachment 325620 [details] [review]
info: remove unused code
Comment 8 Cosimo Cecchi 2016-04-08 23:22:15 UTC
Created attachment 325621 [details] [review]
info: remove unused defines
Comment 9 Cosimo Cecchi 2016-04-08 23:22:20 UTC
Created attachment 325622 [details] [review]
info: fetch renderer information from gnome-session

Now that it's exported over DBus.
Comment 10 Bastien Nocera 2016-04-09 01:18:46 UTC
Review of attachment 325620 [details] [review]:

Yeah.
Comment 11 Bastien Nocera 2016-04-09 01:19:45 UTC
Review of attachment 325621 [details] [review]:

You can probably squash this in to the previous one.
Comment 12 Bastien Nocera 2016-04-09 01:24:13 UTC
Review of attachment 325622 [details] [review]:

Looks good.
Comment 13 Cosimo Cecchi 2016-04-09 04:10:10 UTC
Attachment 325620 [details] pushed as 60e7c35 - info: remove unused code
Attachment 325622 [details] pushed as 13beb5d - info: fetch renderer information from gnome-session

Squashed and pushed to master