From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (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 C074F2E717B for ; Tue, 26 May 2026 18:17:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779819436; cv=none; b=OGqpTovryfNhObN65JV5y7EAW6bF5mrPuOeUxC/mAamn+/jwm95a0OuSKjD8wgwBrzwNwDvtmyYBFTQbDlWx3NJZQS/S7fF0dMhrbXmu2MsBkvBlY1+walQfRV+Ym9824roirlPGPHsVQh8OG3bdijZ2jqygxK9quzO+ZHWzkyg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779819436; c=relaxed/simple; bh=LK27PYsAGH3dhnn4TnO1UlfZ2j3tL+/sLGsPaiCJaco=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FzrwiwTBbPGGZZkEGt6r/m4OCTnoH9YhMALoyBtn+cM8qR1NtT6655AUz1bbuFsLkMKMkbkElO4NrJUyM3U9SBB/chd+PCz5C/6qfzkMHoPWYWjxvAkLQup3sZAA7Rj7sE0Cqvw0HxxmwH11ljeqeRe5YWOS52kxkP4XLuFPgGs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=k9TXB0vF; arc=none smtp.client-ip=148.251.105.195 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 (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="k9TXB0vF" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1779819433; bh=LK27PYsAGH3dhnn4TnO1UlfZ2j3tL+/sLGsPaiCJaco=; h=From:To:Cc:Subject:Date:From; b=k9TXB0vFtfuFnnr/ml8GLn0rFIMigpvVAkk7dEM4OT/O2P4HCvNkYAtP5zixf21KF f4fmvb0XqRRxQeWlOVbg31Ulg8/s+KnwYm5g7+cEU0BLBcvCy1Tba8lZ0UiSpsvBSs ML4hCppqqSnlylz+pYIRhyJ3vdOF+HDPpxemQx3VSTp+6GjzJlfafZYuJVb+vU/PHi 17Du8Gybpz5ZmhXaVGbW7higrOUQPljUPB+48Fod06cNAxTDNJ7J1JQjdVKdFpoIyn 9usFhEOVnzp0KN0FOosLmaW0SCFU/QFvL50QUYOigO/owpChmeKHLtpqoLJX4E4k/V rrmGmfvz419pg== Received: from archlinux (unknown [100.64.0.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: leandrohrb) by bali.collaboradmins.com (Postfix) with ESMTPSA id 57AB417E0CF3; Tue, 26 May 2026 20:17:09 +0200 (CEST) From: Leandro Ribeiro To: dri-devel@lists.freedesktop.org Cc: airlied@gmail.com, daniels@collabora.com, jani.nikula@linux.intel.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, pekka.paalanen@collabora.com, simona@ffwll.ch, tzimmermann@suse.de, ville.syrjala@linux.intel.com, linux-kernel@vger.kernel.org Subject: [PATCH v4 0/2] drm/drm_blend: allow blend mode property without PREMULTI Date: Tue, 26 May 2026 15:16:58 -0300 Message-ID: <20260526181700.25310-1-leandro.ribeiro@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 Some hardware only supports the COVERAGE blend mode and lacks PREMULTI support entirely. DRM currently requires that PREMULTI is present when creating a blend mode property, which prevents such drivers from being properly upstreamed. This series removes this restriction and allows drivers to create a blend mode property without PREMULTI. On Weston (userspace), we are working [1] towards adding support for this kind of hardware. [1] https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/2046 v4: - Trigger warnings instead of errors when pixel format with alpha is exposed but blend mode is not setup. - Require blend mode only when plane exposes pixel formats with alpha, not when it supports the alpha property. v3: - Changed where we enforce drivers to expose blend mode for planes that support the alpha property or pixel formats with alpha. - Fixed missing check to forbid calling drm_plane_create_blend_mode_property() with a zero bitmask of supported modes. v2: - Force drivers to expose blend mode if plane supports alpha property or pixel format with alpha. Leandro Ribeiro (2): drm/drm_blend: allow blend mode property without PREMULTI drm: ensure blend mode supported if pixel format with alpha exposed drivers/gpu/drm/drm_blend.c | 20 ++++++++++++++------ drivers/gpu/drm/drm_mode_config.c | 21 +++++++++++++++++++++ 2 files changed, 35 insertions(+), 6 deletions(-) -- 2.54.0