From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sender4-pp-f112.zoho.com (sender4-pp-f112.zoho.com [136.143.188.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9575D3264FF for ; Tue, 30 Jun 2026 08:43:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=136.143.188.112 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782809020; cv=pass; b=c6WCIwqGTUDrWAojg/Y8FfENVveaC4Po7oS62uC5PZOro0bXJBhwMFrznqbD7ZsireiSLfV9XQuAMsnlAEVGDzlMQEHOiMNvWxFHO/aSIRpEJG6XqMyJxVr2QAzrk5v5x3w/+04mfsQeHjgx6Fam9acwD0lGBJ9atgxie7biw7Y= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782809020; c=relaxed/simple; bh=jb5Dkg62bopM6JwTBfd9sPs+h6rmuvryoT7LLov3sxM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mPOBJ9NnOh6GmXB2tSyU391leg2PdTs5ocIvv0cMkN0KJcJtC/Nzit82e9Q5vCdpAXVZRheb40PcV/sJafQUdsWB5IKhsclZv+nXIegBfutDz1U2bU4mcX7qP4ctAzs6SPSxwudQRbBcsjx8QsIZABvO5DY9rYJFE9axIiBOTBU= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (1024-bit key) header.d=collabora.com header.i=robert.mader@collabora.com header.b=MzZetzls; arc=pass smtp.client-ip=136.143.188.112 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=collabora.com header.i=robert.mader@collabora.com header.b="MzZetzls" 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit >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