From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6D42210E7F6 for ; Tue, 18 Apr 2023 16:49:40 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Tue, 18 Apr 2023 22:14:25 +0530 Message-Id: <20230418164501.1687266-10-bhanuprakash.modem@intel.com> In-Reply-To: <20230418164501.1687266-1-bhanuprakash.modem@intel.com> References: <20230418164501.1687266-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t 09/45] 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: From: Zbigniew Kempczyński 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 4f7bab68f..4db877514 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.40.0