• Show log

    Commit

  • Hash : c26946e9
    Author : Sam Lantinga
    Date : 2017-09-01T12:54:38

    Fixed bug 3792 - [KMS/DRM] Wrong GBM format
    
    Romain Tisserand
    
    Using KMS/DRM driver from WIP SDL2.0.6 on Linux/ARM SoC RockChip RK3328 (ARM Mali 450 MP2 GPU).
    
    The current code is using GBM_BO_FORMAT_XRGB8888 as GBM buffer format specifier.
    
    The Mali driver (it has been confirmed some other vendor implementations too) expects GBM_FORMAT_XRGB8888.
    
    The Mesa implementation is actually handling both values as the same, but it's not implemented like this into every gbm.h vendor header.
    
    https://github.com/ideak/mesa/blob/master/src/gbm/backends/dri/gbm_dri.c
    
    So with stock SDL2 on my card (Mali vendor implementation), it does not work, eglCreateWindowSurface fails, and gbm_is_format_supported fails too (with the BO variant).
    It runs fine with GBM_FORMAT_XRGB8888.
    
    Here is a link of the gbm.h from Mali user-space driver :
    
    https://github.com/rockchip-linux/libmali/blob/rockchip/include/gbm.h
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w www_kmx_io thodg thodg_l
    Tags

  • README.txt

  •                          Simple DirectMedia Layer
    
                                      (SDL)
    
                                    Version 2.0
    
    ---
    https://www.libsdl.org/
    
    Simple DirectMedia Layer is a cross-platform development library designed
    to provide low level access to audio, keyboard, mouse, joystick, and graphics
    hardware via OpenGL and Direct3D. It is used by video playback software,
    emulators, and popular games including Valve's award winning catalog
    and many Humble Bundle games.
    
    More extensive documentation is available in the docs directory, starting
    with README.md
    
    Enjoy!
    	Sam Lantinga				(slouken@libsdl.org)