From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 383E210EA1E for ; Fri, 3 Nov 2023 16:03:07 +0000 (UTC) From: Matthew Auld To: igt-dev@lists.freedesktop.org Date: Fri, 3 Nov 2023 16:02:25 +0000 Message-ID: <20231103160237.405122-4-matthew.auld@intel.com> In-Reply-To: <20231103160237.405122-1-matthew.auld@intel.com> References: <20231103160237.405122-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 v7 03/15] lib/igt_draw: 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_draw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/igt_draw.c b/lib/igt_draw.c index 9a7664a37..1cf9d87c9 100644 --- a/lib/igt_draw.c +++ b/lib/igt_draw.c @@ -797,7 +797,8 @@ static void draw_rect_render(int fd, struct cmd_data *cmd_data, else tmp.handle = xe_bo_create_flags(fd, 0, ALIGN(tmp.size, xe_get_default_alignment(fd)), - visible_vram_if_possible(fd, 0)); + visible_vram_if_possible(fd, 0) | + XE_GEM_CREATE_FLAG_SCANOUT); tmp.stride = rect->w * pixel_size; tmp.bpp = buf->bpp; -- 2.41.0