* How to handle mesa customization in BSP layers
@ 2015-10-20 9:32 Nicolas Dechesne
2015-10-20 9:37 ` Koen Kooi
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Dechesne @ 2015-10-20 9:32 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
hi there,
in the meta-qcom BSP layer, I need to customize mesa to enable
Gallium/freedreno driver which is not enabled in OE-core by default. I
have been using a bbappend , see [1] so far.
However it was reported by Koen that his is causing issues, at least
in Angstrom, though it's not specific to this distro.. See github
comments on [2].
The issue is that mesa is arch specific, not machine specific. So if
you start mixing machines from the same arch, we are getting
unexpected/wrong rebuilds.
How am I supposed to handle that properly in a BSP layer? I don't
think that enabling the freedreno driver should be a distro config, am
i right?
thanks
nico
[1] https://github.com/ndechesne/meta-qcom/blob/master/recipes-graphics/mesa/mesa_10.%25.bbappend
[2] https://github.com/ndechesne/meta-qcom/commit/dc00771aaba1051a3c679dd8f782089b499cbdbb
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to handle mesa customization in BSP layers
2015-10-20 9:32 How to handle mesa customization in BSP layers Nicolas Dechesne
@ 2015-10-20 9:37 ` Koen Kooi
2015-10-24 22:00 ` Trevor Woerner
0 siblings, 1 reply; 4+ messages in thread
From: Koen Kooi @ 2015-10-20 9:37 UTC (permalink / raw)
To: Nicolas Dechesne; +Cc: Patches and discussions about the oe-core layer
> Op 20 okt. 2015, om 11:32 heeft Nicolas Dechesne <nicolas.dechesne@linaro.org> het volgende geschreven:
>
> hi there,
>
> in the meta-qcom BSP layer, I need to customize mesa to enable
> Gallium/freedreno driver which is not enabled in OE-core by default. I
> have been using a bbappend , see [1] so far.
>
> However it was reported by Koen that his is causing issues, at least
> in Angstrom, though it's not specific to this distro.. See github
> comments on [2].
>
> The issue is that mesa is arch specific, not machine specific. So if
> you start mixing machines from the same arch, we are getting
> unexpected/wrong rebuilds.
>
> How am I supposed to handle that properly in a BSP layer? I don't
> think that enabling the freedreno driver should be a distro config, am
> i right?
I agree that making it a DISTRO thing is not the right answer, but it is exactly what I ended up doing: https://github.com/Angstrom-distribution/meta-angstrom/commit/549d58dd00cd0683d92b942e9574ef0d1e347e51
In this specific case I think we should enable freedreno for armv7/armv8 in OE-core, but the problem remains for other recipes like this.
regards,
Koen
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to handle mesa customization in BSP layers
2015-10-20 9:37 ` Koen Kooi
@ 2015-10-24 22:00 ` Trevor Woerner
2015-10-25 12:22 ` Nicolas Dechesne
0 siblings, 1 reply; 4+ messages in thread
From: Trevor Woerner @ 2015-10-24 22:00 UTC (permalink / raw)
To: Koen Kooi, Nicolas Dechesne
Cc: Patches and discussions about the oe-core layer
On 10/20/15 05:37, Koen Kooi wrote:
>> Op 20 okt. 2015, om 11:32 heeft Nicolas Dechesne <nicolas.dechesne@linaro.org> het volgende geschreven:
>>
>>
>> The issue is that mesa is arch specific, not machine specific. So if
>> you start mixing machines from the same arch, we are getting
>> unexpected/wrong rebuilds.
> In this specific case I think we should enable freedreno for armv7/armv8 in OE-core, but the problem remains for other recipes like this.
Are you suggesting that every armv7 device should have their mesa tuned
for freedreno and freedreno added to their filesystem? That seems quite
overly-broad!
On the surface[1] it would seem as though the decisions as to how one
builds mesa and which graphics solution to install is more similar to
the decision as to which DEFAULTTUNE to use, rather than which
architecture is involved?
[1] which is my way of saying "I don't have the experience of actually
having done this, unlike you people" ;-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to handle mesa customization in BSP layers
2015-10-24 22:00 ` Trevor Woerner
@ 2015-10-25 12:22 ` Nicolas Dechesne
0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Dechesne @ 2015-10-25 12:22 UTC (permalink / raw)
To: Trevor Woerner; +Cc: Koen Kooi, Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1340 bytes --]
Le 25 oct. 2015 00:00, "Trevor Woerner" <twoerner@gmail.com> a écrit :
>
> On 10/20/15 05:37, Koen Kooi wrote:
> >> Op 20 okt. 2015, om 11:32 heeft Nicolas Dechesne <
nicolas.dechesne@linaro.org> het volgende geschreven:
> >>
> >>
> >> The issue is that mesa is arch specific, not machine specific. So if
> >> you start mixing machines from the same arch, we are getting
> >> unexpected/wrong rebuilds.
> > In this specific case I think we should enable freedreno for
armv7/armv8 in OE-core, but the problem remains for other recipes like this.
>
> Are you suggesting that every armv7 device should have their mesa tuned
> for freedreno and freedreno added to their filesystem? That seems quite
> overly-broad!
No. Only building the driver. It won't be installed unless you add it into
your image.
>
> On the surface[1] it would seem as though the decisions as to how one
> builds mesa and which graphics solution to install is more similar to
> the decision as to which DEFAULTTUNE to use, rather than which
> architecture is involved?
>
DEFAULTTUNE is a generic config that impacts all packages. What Koen
proposed is to change mesa to build more drivers by default.
>
>
>
>
>
>
> [1] which is my way of saying "I don't have the experience of actually
> having done this, unlike you people" ;-)
[-- Attachment #2: Type: text/html, Size: 1775 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-25 12:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 9:32 How to handle mesa customization in BSP layers Nicolas Dechesne
2015-10-20 9:37 ` Koen Kooi
2015-10-24 22:00 ` Trevor Woerner
2015-10-25 12:22 ` Nicolas Dechesne
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.