From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E5F910EDA6 for ; Fri, 21 Apr 2023 05:55:34 +0000 (UTC) From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Date: Fri, 21 Apr 2023 07:54:56 +0200 Message-Id: <20230421055457.13035-10-zbigniew.kempczynski@intel.com> In-Reply-To: <20230421055457.13035-1-zbigniew.kempczynski@intel.com> References: <20230421055457.13035-1-zbigniew.kempczynski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v4 09/10] lib/gpgpu_fill: Use RENDER engine flag to work on Xe List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Using I915_EXEC_DEFAULT works fine for i915 selecting appropriate command streamer. Unfortunately this cannot be used on Xe as it requires explicit engine selection. Submitting gpgpu work on render is fine so change to I915_EXEC_RENDER doesn't break i915 and allows run on valid engine on Xe. Signed-off-by: Zbigniew KempczyƄski --- lib/gpgpu_fill.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gpgpu_fill.c b/lib/gpgpu_fill.c index 4f7bab68f2..4db8775145 100644 --- a/lib/gpgpu_fill.c +++ b/lib/gpgpu_fill.c @@ -288,7 +288,7 @@ __gen9_gpgpu_fillfunc(int i915, intel_bb_ptr_align(ibb, 32); intel_bb_exec(ibb, intel_bb_offset(ibb), - I915_EXEC_DEFAULT | I915_EXEC_NO_RELOC, true); + I915_EXEC_RENDER | I915_EXEC_NO_RELOC, true); intel_bb_destroy(ibb); } @@ -329,7 +329,7 @@ __xehp_gpgpu_fillfunc(int i915, intel_bb_ptr_align(ibb, 32); intel_bb_exec(ibb, intel_bb_offset(ibb), - I915_EXEC_DEFAULT | I915_EXEC_NO_RELOC, true); + I915_EXEC_RENDER | I915_EXEC_NO_RELOC, true); intel_bb_destroy(ibb); } -- 2.34.1