Skip to content
  • Rob Clark's avatar
    xa: add xa_surface_from_handle2 v2 · 1432a182
    Rob Clark authored
    
    
    Like xa_surface_from_handle(), but takes a handle type, rather than
    hard-coding 'shared' handle.  This is needed to fix bugs seen with
    xf86-video-freedreno with xrandr rotation, for example.  The root issue
    is that doing a GEM_OPEN ioctl on a bo that already has a GEM handle
    associated with the drm_file will result in two unique handles for the
    same bo.  Which causes all sorts of follow-on fail.
    
    v2:
    - Add support for for fd handles.
    - Avoid duplicating code.
    - Bump xa version minor.
    
    Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    1432a182