Skip to content
  • Rob Herring's avatar
    gbm: Add map/unmap functions · 8aeb6d76
    Rob Herring authored and Emil Velikov's avatar Emil Velikov committed
    
    
    This adds map and unmap functions to GBM utilizing the DRIimage extension
    mapImage/unmapImage functions or existing internal mapping for dumb
    buffers. Unlike prior attempts, this version provides a region to map and
    usage flags for the mapping. The operation follows the same semantics as
    the gallium transfer_map() function.
    
    This was tested with GBM based gralloc on Android.
    
    Signed-off-by: default avatarRob Herring <robh@kernel.org>
    [Emil Velikov: drop no longer relevant hunk from commit message.]
    Reviewed-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
    Reviewed-by: default avatarEric Anholt <eric@anholt.net>
    8aeb6d76