summaryrefslogtreecommitdiff
path: root/tests/i915/gem_lmem_swapping.c
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2022-05-24 19:26:32 +0100
committerMatthew Auld <matthew.auld@intel.com>2022-06-30 12:49:22 +0100
commitb0e377c287f387c19134c6a22d535d2a4e9ee97e (patch)
treed2ae59722daa338c37c794f635aa5bd50a59ffa3 /tests/i915/gem_lmem_swapping.c
parent0f8ecd1365837f79be13160d417ae31b62979bea (diff)
lib/i915: add gem_create_with_cpu_access_in_memory_regions
Most users shouldn't care about such an interface, but where required, this should be useful to aid in setting NEEDS_CPU_ACCESS for a given BO. Underneath we try to smooth over needing to provide an explicit SMEM region, or if this is SMEM-only, we don't want the kernel to throw an error. Signed-off-by: Matthew Auld <matthew.auld@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>
Diffstat (limited to 'tests/i915/gem_lmem_swapping.c')
-rw-r--r--tests/i915/gem_lmem_swapping.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c
index 21c2bf72..1a4f4ca5 100644
--- a/tests/i915/gem_lmem_swapping.c
+++ b/tests/i915/gem_lmem_swapping.c
@@ -131,7 +131,7 @@ static uint32_t create_bo(int i915,
int ret;
retry:
- ret = __gem_create_in_memory_region_list(i915, &handle, size, region, 1);
+ ret = __gem_create_in_memory_region_list(i915, &handle, size, 0, region, 1);
if (do_oom_test && ret == -ENOMEM)
goto retry;
igt_assert_eq(ret, 0);