Search code examples
qtqtquick2egl

Use correct colors on QT Quick application running on EGLFS


I am currently developing a QT Quick application on a BeagleBone. At the beginning I was running it on a X server, and the way I got the correct colors working was by changing the xorg configuration (super easy), but it was very slow.

Section "Screen"
    Identifier     "Screen0"
    Monitor        "Monitor0"
    Option         "ColorSpace" "RGB565"
    DefaultDepth    16
EndSection

Now I managed to install the graphics drivers on the BeagleBone and now I can run the application on EGLFS platform with hardware acceleration, but colours are always wrong, and I don't know how to change the EGL configuration, I tried everything.

I'd appreciate any ideas to help me continue with this.


Solution

  • Fixed by modifying the file: /etc/powervr.ini:

    [default]
    #WindowSystem=libpvrDRMWSEGL_FRONT.so
    WindowSystem=libpvrDRMWSEGL.so
    DisableHWTQTextureUpload=0
    ParamBufferSize=1677216
    DefaultPixelFormat=RGB565