• Daniel Vetter's avatar
    drm/i915: extract fence stealing code · ae3db24a
    Daniel Vetter authored
    The spaghetti logic in there tripped up my brain's code parser for a
    few secs. Prevent this from happening again by extracting the fence
    stealing code into a seperate functions. IMHO this slightly clears up
    the code flow.
    
    v2: Beautified according to ickle's comments.
    v3: ickle forgot to flush his comment queue ... Now there's also a
    we-are-paranoid BUG_ON in there.
    v4: I've forgotten to switch on my brain when doing v3. Now the BUG_ON
    actually checks something useful.
    v5: Clean up a stale comment as noted by Eric Anholt.
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Signed-off-by: default avatarEric Anholt <eric@anholt.net>
    ae3db24a
i915_gem.c 135 KB