[yocto] [meta-raspberrypi][PATCH 5/5] rpi-default-providers: Switch providers according to used gfx stack

Andreas Müller schnitzeltony at googlemail.com
Wed Aug 12 10:15:03 PDT 2015


On Wed, Aug 12, 2015 at 4:59 PM, Javier Martinez Canillas
<javier at osg.samsung.com> wrote:
> Hello,
>
> On 08/10/2015 10:22 AM, Javier Martinez Canillas wrote:
>> Hello Andreas,
>>
>> On 08/10/2015 01:37 AM, Andreas Müller wrote:
>>>> Khem definitely has a very good point. Maybe his way of putting it in words was
>>>> not that productive. But the core idea was definitely right: I don't want rpi
>>>> layer to introduce distro features.
>>> Agreed but I still have issues make the changes work
>>>
>>> What I have done to test:
>>>
>>> 1. add
>>> MASK_GPU_INTERRUPT = "0x400"
>>> DISTRO_FEATURES_append = " vc4-gfx"
>>>
>>> to my local.conf
>>>
>>> 2. put [1] on top of the VC4 patches sent  (this is a WIP patch not
>>> yet finished)
>>> 3. tested running X11
>>>
>
> I tested Andreas' WIP patch under X11 using the core-image-sato image and I
> could reproduce the same behavior. KMS/DRM works when using the modesetting
> Xorg DDX but no GLES with HW acceleration.
>
>>
>> I did only test with Weston since that is what Tizen uses and not with X11.
>> I'll make sure to test with X11 and also include a mesa_%.bbappend for v2.
>>
>>> Question: What setting does the trick getting vc4 driver created by
>>> mesa doing the OpenGL work. I see only swrast which is bulls...
>>>
>>
>> I'm not really a graphics person so I'll let Derek to answer this. He is
>> in fact the author of most of these patches and I'm just working on push
>> them upstream.
>>
>
> Derek is on holidays until next week so I tried to dig on this. When running
> the glmark2-es2 benchmark I get:
>
> $ glmark2-es2
> libEGL warning: DRI2: failed to authenticate
> ** Failed to set swap interval. Results may be bounded above by refresh rate.
> =======================================================
>     glmark2 2014.03
> =======================================================
>     OpenGL Information
>     GL_VENDOR:     Mesa Project
>     GL_RENDERER:   Software Rasterizer
>     GL_VERSION:    OpenGL ES 2.0 Mesa 10.5.8
> =======================================================
>
> so as Andreas said, it is using swrast instead of the VC4 hw one. And in fact
> by running strace I see that there is a open("/usr/lib/dri/swrast_dri.so",...)
> but /usr/lib/dri/vc4_dri.so is never opened.
>
> I tried bumping the mesa git recipe to use the same sha1 we are using in our
> Tizen port but ran into build issues...
>
> But I've reworked the patch series according to your suggestions and I can post
> a v2 if you want since at least KMS/DRM is working with Andreas' changes or do
> you want to first sort out the mesa bits for 3D HW accel before posting a v2?
>
FYI: I managed to get the vc4 driver loaded (should be in my repo
branch vc4-2). With this I get some repeating kernel error messages
(don't have them here). I am sure that I read something about these
messages when preparing vc4 (yes I started similar before you sent
patches).

Hope I have some energy left tonight to check further and let you know...

Andreas



More information about the yocto mailing list