From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTPS id A6F4189EA6 for ; Wed, 4 Aug 2021 23:44:22 +0000 (UTC) Date: Wed, 04 Aug 2021 16:44:20 -0700 Message-ID: <87fsvou65n.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <87im0ku6zb.wl-ashutosh.dixit@intel.com> References: <20210726200026.4815-1-zbigniew.kempczynski@intel.com> <20210726200026.4815-7-zbigniew.kempczynski@intel.com> <87im0ku6zb.wl-ashutosh.dixit@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 v3 06/52] lib/intel_batchbuffer: Add allocator support in blitter src copy List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Zbigniew =?ISO-8859-2?Q?Kempczy=F1ski?= Cc: igt-dev@lists.freedesktop.org List-ID: On Wed, 04 Aug 2021 16:26:32 -0700, Dixit, Ashutosh wrote: > > On Mon, 26 Jul 2021 12:59:40 -0700, Zbigniew Kempczy=F1ski wrote: > > > > @@ -808,9 +816,21 @@ void igt_blitter_src_copy(int fd, > > uint32_t src_pitch, dst_pitch; > > uint32_t dst_reloc_offset, src_reloc_offset; > > uint32_t gen =3D intel_gen(intel_get_drm_devid(fd)); > > + uint64_t batch_offset, src_offset, dst_offset; > > const bool has_64b_reloc =3D gen >=3D 8; > > int i =3D 0; > > > > + batch_handle =3D gem_create(fd, 4096); > > + if (ahnd) { > > + src_offset =3D get_offset(ahnd, src_handle, src_size, 0); > > + dst_offset =3D get_offset(ahnd, dst_handle, dst_size, 0); > > + batch_offset =3D get_offset(ahnd, batch_handle, 4096, 0); > > + } else { > > + src_offset =3D 16 << 20; > > + dst_offset =3D ALIGN(src_offset + src_size, 1 << 20); > > + batch_offset =3D ALIGN(dst_offset + dst_size, 1 << 20); > > For the !ahnd case, we are providing relocations right? We still need to > provide these offsets or they can all be 0? This is probably needed because of I915_EXEC_NO_RELOC added in the next patch (Patch 07/20)?