From nobody Mon Apr 6 23:10:26 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1773769841; cv=none; d=zohomail.com; s=zohoarc; b=gQiAUWw91kn9OeR91qm/hzGxZq6cQQMtXdK/JTk1m4YgiXlRiQ9E4Z+EReLOcc7CBz0fQ/nxyzF3hsmLM3YkKRj7+ot9z4TDP6Od5+0z9r/GsrFeaQN20IJf5TVtYHAEcT3e6AJR6LItRP3mH+CaMH0pfxUGyrrxFtZAED8acLU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773769841; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=530Uj1XxFv4n0VaFgxJ0F6ngR3XyAeVR0aKHfSOSPFg=; b=IlrPrW5jZT1OutRLmDKbGhRJ3qZBb6rplHVCx+i4RjdQYmci7f9DKqLnKRGWJd+Dk1a2iU0yEos+ea9MqjtLsTRQOJqfJI0pzzW6+QToi/5/20kPQos/e8SAHTDXBO59VufEv6b3vtJdyCX3bJzrgoFclnjzZegDL0Pqd1qZzxc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1773769841531582.8776832534977; Tue, 17 Mar 2026 10:50:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1w2YXp-0004oo-C8; Tue, 17 Mar 2026 13:49:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1w2YXn-0004lr-55 for qemu-devel@nongnu.org; Tue, 17 Mar 2026 13:49:27 -0400 Received: from mail-dy1-x132f.google.com ([2607:f8b0:4864:20::132f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1w2YXl-00078d-LT for qemu-devel@nongnu.org; Tue, 17 Mar 2026 13:49:26 -0400 Received: by mail-dy1-x132f.google.com with SMTP id 5a478bee46e88-2c0bcd8f194so4131818eec.1 for ; Tue, 17 Mar 2026 10:49:25 -0700 (PDT) Received: from localhost.localdomain ([143.54.78.51]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2c0e536896csm282115eec.3.2026.03.17.10.49.21 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 17 Mar 2026 10:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773769764; x=1774374564; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=530Uj1XxFv4n0VaFgxJ0F6ngR3XyAeVR0aKHfSOSPFg=; b=A6gath4Kc9Ecd1NYiYwsYR87R3HJAxSWAUfn3LM6Pc10y2zR53oSaEr4JNWuEif24i K5vYCGBftdKdfkigJxepznml37MhBolLdoSz65uqHAZUVx9iWLxkwAQsPiBq/Fuzp7g+ xlDImdeT+hkZpT/ECKT59zMLJkWxruc9gNYlPD7GoY+kl4bFJzuwpZEmTibiQp+Mrc0z CRNhcK81e2Hhcoi9YewRyoCEvrQ5G8OWUDrsPBJYO3hG6c0wqoFSj9lbvb+tQgVk49pP xfw8N4SgNeDItnC11eIZgGaczvzGwI7WthvFYBby3poV7dJFdrELmEGy0vcx4fYhFKye ZKzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773769764; x=1774374564; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=530Uj1XxFv4n0VaFgxJ0F6ngR3XyAeVR0aKHfSOSPFg=; b=FOJcWK0otfrex3qOdR4hHo3fdFNgw4LYW55q3ryA4Mn3aPPsoqs2agfBr8UmcKCPj4 2gaA1y2fgFDP67mz8X9dqv4DpFFcLYvPnwZ8FKFj+3RZn14dGPL33neVLG4JsDZcGrgU 32twRflWy3iTIqNvbeI6HkTLCdePqFlq77djI3unKMP3vHnSD/pPG3mItblR3A4YmtcU 6UPcLpN7wis1XNrQJA6Naz/EU1TZ3QjOq1xUFX9ZcuDv0tIuVWH8nmmI3/My2X1EjRWe uEntha8DeWPwvZUsTUx9nc4Y85D4+hTxRH8oWZfUJeANxDFtYoX5jGHOnJkNRTrVbSHX vT2w== X-Gm-Message-State: AOJu0YzyhTYiTaIiARoFBOaHdxX2oLAW2Ru+7vx1NozOKWGWQMdTWpXy LhvXIBgNGLQPsSa6cJ4vgeJfMOIPKk2OXLshxVaRoCscMVBxjbR7KzYwsvch4Y4z X-Gm-Gg: ATEYQzye/tUqwDcVBWY52lBxyETr6ITRlOGodfdX4ceFap/LVt4q0udVQyRlvdboYHL UBvlwbpLCcqHnAYY4unyEyk1ATQane9CNNVf/SWPHEQJ4JUdjvui5IktkaWLuUNzuhgacEyGZeA zF6fbwTw/J47w+H8cjtXCt2L7EHB0SyaWKTmKyBopoy0vhR2uYcnXuMFy+bp/eSZ9DJFCtbqilR 4VXU80dWTK0Fy4IXrIrN9sTdbDtr2gbxGg+AQg+Im1KzKir/lMiofh0VMKERPI4wcBXo/USrxM+ JF/VQ1DbS+unQkj09r2mI50cg03CeTTS/VtmgNOvuhdSm4fUtyMzgX6j0gquUfmN1TWDAvD2Z9Y 7BMYX37D4njYkm/Q+xH82Q3yDqH+0FqCmrF23Bs4UpCjdiqMLvmyhE4by6I7hUCHinutZ2O1s8H gRBmnlDJM1nhJqerpkGAxsKZizq7j4iFAFh1AUI2TDifhYsU5lvZNr7Zkaeane0Gc= X-Received: by 2002:a05:7301:168b:b0:2be:ca4:e13f with SMTP id 5a478bee46e88-2c0e5085f7fmr121739eec.23.1773769763843; Tue, 17 Mar 2026 10:49:23 -0700 (PDT) From: Lucas Amaral To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, alex.bennee@linaro.org, dmitry.osipenko@collabora.com, marcandre.lureau@redhat.com, Lucas Amaral Subject: [PATCH v4 1/4] ui: introduce GRAPHIC_FLAGS_VK for Vulkan scanout Date: Tue, 17 Mar 2026 14:49:12 -0300 Message-ID: <20260317174915.31829-2-lucaaamaral@gmail.com> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260317174915.31829-1-lucaaamaral@gmail.com> References: <20260317174915.31829-1-lucaaamaral@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::132f; envelope-from=lucaaamaral@gmail.com; helo=mail-dy1-x132f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1773769843230154100 Content-Type: text/plain; charset="utf-8" Define GRAPHIC_FLAGS_VK (bit 2) in the console flags for future Vulkan scanout support. The compatibility check currently returns an error indicating the feature is not yet implemented. This prepares the display framework for direct Vulkan scanout alongside the existing GL and DMABUF paths. Signed-off-by: Lucas Amaral --- include/ui/console.h | 2 ++ ui/console.c | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/include/ui/console.h b/include/ui/console.h index 3677a9d3..19ac06e0 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -361,6 +361,8 @@ enum { GRAPHIC_FLAGS_GL =3D 1 << 0, /* require a console/display with DMABUF import */ GRAPHIC_FLAGS_DMABUF =3D 1 << 1, + /* TODO: require a console/display with Vulkan scanout */ + GRAPHIC_FLAGS_VK =3D 1 << 2, }; =20 typedef struct GraphicHwOps { diff --git a/ui/console.c b/ui/console.c index f445db11..424ee195 100644 --- a/ui/console.c +++ b/ui/console.c @@ -594,6 +594,13 @@ static bool console_compatible_with(QemuConsole *con, return false; } =20 + if (flags & GRAPHIC_FLAGS_VK) { + /* TODO: check for Vulkan scanout support in display backend */ + error_setg(errp, + "Vulkan scanout not yet implemented"); + return false; + } + return true; } =20 --=20 2.52.0