Skip to content
  • Daniele Ceraolo Spurio's avatar
    lib/igt_dummyload: add igt_cork · 7040f3be
    Daniele Ceraolo Spurio authored and Chris Wilson's avatar Chris Wilson committed
    
    
    The "cork" bo (imported bo with attached fence) and fence is used in several
    tests to stall execution. Moving it to a common place makes the codebase
    cleaner.
    
    Note that the actual test updates is done in follow up patches as it is
    simpler to do in one go after one more common function is added in the
    next patch.
    
    v2: don't use new/free naming, don't use dynamic alloc (Chris)
    v3: add sw_sync common functions. (Chris)
    v4: squash sw_sync and vgem cork structs into one. (Chris)
    v5: use anonymous enum in cork struct. (Chris)
    v6: reset cork after unplugging. (Chris)
    
    Signed-off-by: default avatarDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
    Signed-off-by: default avatarAntonio Argenziano <antonio.argenziano@intel.com>
    Cc: Chris Wilson <chris@chris-wilson.co.uk>
    Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
    Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
    7040f3be