Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id B297D6E98A for ; Wed, 1 Dec 2021 22:00:45 +0000 (UTC) Date: Wed, 01 Dec 2021 14:00:42 -0800 Message-ID: <87zgpkx9x1.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20211122073533.8092-1-sai.gowtham.ch@intel.com> References: <20211122073533.8092-1-sai.gowtham.ch@intel.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/gem_exec_capture: Add support for local memory List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: sai.gowtham.ch@intel.com Cc: igt-dev@lists.freedesktop.org List-ID: On Sun, 21 Nov 2021 23:35:33 -0800, wrote: > > From: Ch Sai Gowtham > > Add support for local memory region (Device memory) > > Signed-off-by: Ch Sai Gowtham > Cc: Zbigniew Kempczy=F1ski > --- > tests/i915/gem_exec_capture.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c > index b80f597f..a0614ad3 100644 > --- a/tests/i915/gem_exec_capture.c > +++ b/tests/i915/gem_exec_capture.c > @@ -380,7 +380,7 @@ static void capture(int fd, int dir, const intel_ctx_= t *ctx, > uint64_t ahnd; > int obj_size =3D 4096; > > - handle =3D gem_create(fd, obj_size); > + handle =3D gem_create_in_memory_regions(fd, obj_size, REGION_LMEM(0)); Note we already have an lmem() test, so we should be doing something there = too... > ahnd =3D get_reloc_ahnd(fd, ctx->id); > > __capture1(fd, dir, ahnd, ctx, e, handle, obj_size); > -- > 2.32.0 >