Skip to content

Commit

Permalink
[TEST DON't Merge] diable bo capture
Browse files Browse the repository at this point in the history
  • Loading branch information
Jexu committed Apr 2, 2024
1 parent 061a0c9 commit 45d0842
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions media_softlet/linux/common/os/i915/mos_bufmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -610,8 +610,8 @@ mos_add_validate_buffer2(struct mos_linux_bo *bo, int need_fence)
flags |= EXEC_OBJECT_PINNED;
if (bo_gem->exec_async)
flags |= EXEC_OBJECT_ASYNC;
if (bo_gem->exec_capture)
flags |= EXEC_OBJECT_CAPTURE;
//if (bo_gem->exec_capture)
// flags |= EXEC_OBJECT_CAPTURE;

if (bo_gem->validate_index != -1) {
bufmgr_gem->exec2_objects[bo_gem->validate_index].flags |= flags;
Expand Down Expand Up @@ -2540,8 +2540,8 @@ do_bo_emit_reloc(struct mos_linux_bo *bo, uint32_t offset,
flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
if (target_bo_gem->exec_async)
flags |= EXEC_OBJECT_ASYNC;
if (target_bo_gem->exec_capture)
flags |= EXEC_OBJECT_CAPTURE;
//if (target_bo_gem->exec_capture)
// flags |= EXEC_OBJECT_CAPTURE;

if (target_bo != bo)
mos_gem_bo_reference(target_bo);
Expand Down Expand Up @@ -2660,8 +2660,8 @@ mos_gem_bo_add_softpin_target(struct mos_linux_bo *bo, struct mos_linux_bo *targ
flags |= EXEC_OBJECT_SUPPORTS_48B_ADDRESS;
if (target_bo_gem->exec_async)
flags |= EXEC_OBJECT_ASYNC;
if (target_bo_gem->exec_capture)
flags |= EXEC_OBJECT_CAPTURE;
//if (target_bo_gem->exec_capture)
// flags |= EXEC_OBJECT_CAPTURE;
if (write_flag)
flags |= EXEC_OBJECT_WRITE;

Expand Down Expand Up @@ -2708,8 +2708,8 @@ mos_bufmgr_bo_get_softpin_targets_info(struct mos_linux_bo *bo, int *count)
info[counter].size = target->bo->size;
info[counter].offset64 = target->bo->offset64;

if (!bufmgr_gem->object_capture_disabled)
target->flags |= EXEC_OBJECT_CAPTURE;
//if (!bufmgr_gem->object_capture_disabled)
// target->flags |= EXEC_OBJECT_CAPTURE;

info[counter].flags = target->flags;
info[counter].mem_region = target_gem->mem_region;
Expand All @@ -2729,8 +2729,8 @@ mos_bufmgr_bo_get_softpin_targets_info(struct mos_linux_bo *bo, int *count)
bb_flags |= EXEC_OBJECT_PINNED;
if (bo_gem->exec_async)
bb_flags |= EXEC_OBJECT_ASYNC;
if (bo_gem->exec_capture)
bb_flags |= EXEC_OBJECT_CAPTURE;
//if (bo_gem->exec_capture)
// bb_flags |= EXEC_OBJECT_CAPTURE;

info[counter].handle = bo->handle;
info[counter].size = bo->size;
Expand Down

0 comments on commit 45d0842

Please sign in to comment.