From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4C1A510E58D for ; Fri, 20 Oct 2023 09:38:24 +0000 (UTC) From: Matthew Auld To: igt-dev@lists.freedesktop.org Date: Fri, 20 Oct 2023 10:37:48 +0100 Message-ID: <20231020093801.631809-3-matthew.auld@intel.com> In-Reply-To: <20231020093801.631809-1-matthew.auld@intel.com> References: <20231020093801.631809-1-matthew.auld@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [PATCH i-g-t v5 02/15] lib/igt_fb: mark buffers as SCANOUT List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Display buffers likely will want WC, instead of the default WB on the CPU side, given that display engine is incoherent with CPU caches. Signed-off-by: Matthew Auld Cc: José Roberto de Souza Cc: Pallavi Mishra Reviewed-by: Pallavi Mishra --- lib/igt_fb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/igt_fb.c b/lib/igt_fb.c index e531a041e..ad0148339 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -1206,7 +1206,8 @@ static int create_bo_for_fb(struct igt_fb *fb, bool prefer_sysmem) igt_assert(err == 0 || err == -EOPNOTSUPP); } else if (is_xe_device(fd)) { fb->gem_handle = xe_bo_create_flags(fd, 0, fb->size, - visible_vram_if_possible(fd, 0)); + visible_vram_if_possible(fd, 0) | + XE_GEM_CREATE_FLAG_SCANOUT); } else if (is_vc4_device(fd)) { fb->gem_handle = igt_vc4_create_bo(fd, fb->size); -- 2.41.0