• Ben Widawsky's avatar
    drm/i915: Move ring_begin to signal() · 024a43e1
    Ben Widawsky authored
    Add_request has always contained both the semaphore mailbox updates as
    well as the breadcrumb writes. Since the semaphore signal is the one
    which actually knows about the number of dwords it needs to emit to the
    ring, we move the ring_begin to that function. This allows us to remove
    the hideously shared #define
    
    On a related not, gen8 will use a different number of dwords for
    semaphores, but not for add request.
    
    v2: Make number of dwords an explicit part of signalling (via function
    argument). (Chris)
    
    v3: very slight comment change
    Reviewed-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
    Signed-off-by: default avatarBen Widawsky <ben@bwidawsk.net>
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    024a43e1
intel_ringbuffer.h 9.47 KB