Skip to content
  • Ben Widawsky's avatar
    drm/i915: add register read IOCTL · c0c7babc
    Ben Widawsky authored
    
    
    The interface's immediate purpose is to do synchronous timestamp queries
    as required by GL_TIMESTAMP. The GPU has a register for reading the
    timestamp but because that would normally require root access through
    libpciaccess, the IOCTL can provide this service instead.
    
    Currently the implementation whitelists only the render ring timestamp
    register, because that is the only thing we need to expose at this time.
    
    v2: make size implicit based on the register offset
    Add a generation check
    
    Reviewed-by: default avatarEric Anholt <eric@anholt.net>
    Cc: Jacek Lawrynowicz <jacek.lawrynowicz@intel.com>
    Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
    [danvet: fixup the ioctl numerb:]
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    c0c7babc