From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id 299016E06B for ; Sat, 12 Jun 2021 02:08:47 +0000 (UTC) Date: Fri, 11 Jun 2021 18:51:29 -0700 Message-ID: <87sg1nn93y.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" In-Reply-To: <20210609173632.248880-24-jason@jlekstrand.net> References: <20210609173632.248880-1-jason@jlekstrand.net> <20210609173632.248880-24-jason@jlekstrand.net> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Subject: Re: [igt-dev] [PATCH i-g-t 23/93] tests/i915/gem_exec_reloc: Convert to intel_ctx_t List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" To: Jason Ekstrand Cc: igt-dev@lists.freedesktop.org List-ID: On Wed, 09 Jun 2021 10:36:06 -0700, Jason Ekstrand wrote: > > @@ -1481,6 +1498,11 @@ igt_main > igt_require_gem(fd); > /* Check if relocations supported by platform */ > igt_require(gem_has_relocations(fd)); > + > + if (gem_has_contexts(fd)) > + ctx = intel_ctx_create_all_physical(fd); > + else > + ctx = intel_ctx_0(fd); This if/else is not needed, intel_ctx_create_all_physical() already does this. _______________________________________________ igt-dev mailing list igt-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/igt-dev