From b0e377c287f387c19134c6a22d535d2a4e9ee97e Mon Sep 17 00:00:00 2001 From: Matthew Auld Date: Tue, 24 May 2022 19:26:32 +0100 Subject: lib/i915: add gem_create_with_cpu_access_in_memory_regions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Cc: Thomas Hellström Reviewed-by: Nirmoy Das --- tests/i915/gem_eio.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/i915/gem_eio.c') diff --git a/tests/i915/gem_eio.c b/tests/i915/gem_eio.c index 6cbae6eb..70e82b81 100644 --- a/tests/i915/gem_eio.c +++ b/tests/i915/gem_eio.c @@ -146,6 +146,7 @@ static void test_create_ext(int fd) igt_assert_eq(__gem_create_in_memory_region_list(fd, &handle, &size, + 0, &r->ci, 1), 0); -- cgit v1.2.3