From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 76983C43458 for ; Tue, 30 Jun 2026 08:43:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1074A10E1C0; Tue, 30 Jun 2026 08:43:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (1024-bit key; unprotected) header.d=collabora.com header.i=robert.mader@collabora.com header.b="MzZetzls"; dkim-atps=neutral Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) by gabe.freedesktop.org (Postfix) with ESMTPS id DCF1510E196; Tue, 30 Jun 2026 08:43:11 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; t=1782808986; cv=none; d=zohomail.com; s=zohoarc; b=itvu64uyYDeMZL5jzFV+h038rpP9b3MkBA8N47ZMCA7xS2YYwl7FFK2WnD/kPVQhRCmUX/jsoNSLyKtmzx34cZ6reEVIowBVU4B22kGNJ3mCGMt4Lob7vZY2r4Q8jXhkymPEIKbVojB+4RFaPgVEyGt9SvZxTzWkfHEj4LorJD4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1782808986; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=dufAXSONUwo/B9hS1GnhZeSx257k/pmdLJDYuxXDvCc=; b=QZgEsvn0VE3uoZuIphmBFi89Cbbl/JoTq/nLeW8HfnnS3XShSQ6ADn0aiHToyJFuTxDW8vhXcKTaTEQI5w9lOWjSVR6mJL1xAkN0xP+gAVO8r34jRNeyvD6T0Uu4I1oGMCfMlHXsd37Qo7Nh8SqxeSya0NpeLBx5+k8w9P8DgUo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=collabora.com; spf=pass smtp.mailfrom=robert.mader@collabora.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1782808985; s=zohomail; d=collabora.com; i=robert.mader@collabora.com; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:MIME-Version:Content-Transfer-Encoding:Message-Id:Reply-To; bh=dufAXSONUwo/B9hS1GnhZeSx257k/pmdLJDYuxXDvCc=; b=MzZetzlskmETFH06K+ecriOu87fICJBQrWKR1OWABCK4v7/nF8extnbCiNS4DUDW 4vIXjFytFi5Oe8b8m+H+UlBNsClZ72VH3muSkZV/46dkUj1bAemEDPFeQA0jE3R2asx eMPxXtWtqmIp9+sA19w0LBAAsQI13nF5tAezeNbg= Received: by mx.zohomail.com with SMTPS id 1782808984200397.6004567094453; Tue, 30 Jun 2026 01:43:04 -0700 (PDT) From: Robert Mader To: dri-devel@lists.freedesktop.org Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, Harry Wentland , Daniel Stone , Chaitanya Kumar Borah , Uma Shankar , Louis Chauvet , Melissa Wen , Simon Ser , Pekka Paalanen , Leandro Ribeiro , Robert Mader Subject: [PATCH v1 0/4] drm: Guard DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE behind driver feature Date: Tue, 30 Jun 2026 10:42:25 +0200 Message-ID: <20260630084229.529682-1-robert.mader@collabora.com> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" >From the main commit: The client cap is currently advertised unconditionally, even for drivers that do not support plane color pipelines. If clients supporting the later, like Wayland compositors and drm_info, enable the client cap on sich drivers they will be left without both color pipeline and the legacy properties COLOR_ENCODING and COLOR_RANGE, effectively breaking YUV->RGB conversion support. Add a new driver feature and guard the client cap behind it, allowing plane color pipeline and legacy YUV->RGB support to co-exist. In case of VKMS make the client cap depend on the enable_plane_pipeline. The series can be easily tested with drm_info >= v2.10.0 and VKMS. Without the enable_plane_pipeline option - currently the default - the legacy flags COLOR_ENCODING and COLOR_RANGE should be advertised, just like older drm_info versions. --- Related series actually implementing the color pipeline replacement for the legacy flags: https://lists.freedesktop.org/archives/dri-devel/2026-June/575655.html Robert Mader (4): drm: Guard DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE behind driver feature drm/amdgpu: Add DRIVER_PLANE_COLOR_PIPELINE driver feature drm/i915: Add DRIVER_PLANE_COLOR_PIPELINE driver feature drm/vkms: Add DRIVER_PLANE_COLOR_PIPELINE driver feature drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 +- drivers/gpu/drm/drm_ioctl.c | 2 ++ drivers/gpu/drm/i915/i915_driver.c | 2 +- drivers/gpu/drm/vkms/vkms_drv.c | 6 +++++- include/drm/drm_drv.h | 6 ++++++ 5 files changed, 15 insertions(+), 3 deletions(-) -- 2.54.0