mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dmitry Osipenko <dmitry.osipenko@collabora.com>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
	David Airlie <airlied@redhat.com>,
	Gerd Hoffmann <kraxel@redhat.com>,
	Gurchetan Singh <gurchetansingh@chromium.org>,
	Chia-I Wu <olvaffe@gmail.com>
Cc: dri-devel@lists.freedesktop.org, virtualization@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1] Revert "drm/virtio: Add pixel blend mode property to cursor plane"
Date: Mon, 12 Oct 2026 01:04:00 +0300	[thread overview]
Message-ID: <cd9e6f0f-808d-4aa3-992b-e1d0af833175@collabora.com> (raw)
In-Reply-To: <64f7ea95-516f-4b95-a42e-14fd606879f9@samsung.com>

On 10/8/26 12:40, Marek Szyprowski wrote:
> On 08.10.2026 11:35, Dmitry Osipenko wrote:
>> On 10/8/26 01:22, Dmitry Osipenko wrote:
>>> The cursor blending mode was added twice because the same change was
>>> applied by accident from different patches. Revert the second patch.
>>>
>>> Reported-by: Marek Szyprowski <m.szyprowski@samsung.com>
>>> Link: https://lore.kernel.org/dri-devel/ce84d3d2-e78b-4939-aecf-9ef7267bd42a@samsung.com/
>>> Fixes: 6947b78df4d2 ("drm/virtio: Add pixel blend mode property to cursor plane")
>>> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
>>> ---
>>>  drivers/gpu/drm/virtio/virtgpu_plane.c | 13 -------------
>>>  1 file changed, 13 deletions(-)
>>>
>>> diff --git a/drivers/gpu/drm/virtio/virtgpu_plane.c b/drivers/gpu/drm/virtio/virtgpu_plane.c
>>> index b422eba42a5f..640815af4098 100644
>>> --- a/drivers/gpu/drm/virtio/virtgpu_plane.c
>>> +++ b/drivers/gpu/drm/virtio/virtgpu_plane.c
>>> @@ -589,7 +589,6 @@ struct drm_plane *virtio_gpu_plane_init(struct virtio_gpu_device *vgdev,
>>>  	struct drm_plane *plane;
>>>  	const uint32_t *formats;
>>>  	int nformats;
>>> -	int ret;
>>>  
>>>  	if (type == DRM_PLANE_TYPE_CURSOR) {
>>>  		formats = virtio_gpu_cursor_formats;
>>> @@ -615,17 +614,5 @@ struct drm_plane *virtio_gpu_plane_init(struct virtio_gpu_device *vgdev,
>>>  		drm_plane_create_blend_mode_property(plane,
>>>  						     BIT(DRM_MODE_BLEND_PREMULTI));
>>>  
>>> -	if (type == DRM_PLANE_TYPE_CURSOR) {
>>> -		/*
>>> -		 * The cursor plane exposes a format with an alpha channel,
>>> -		 * which requires a blend mode property. The host blends
>>> -		 * premultiplied alpha, matching the property's default.
>>> -		 */
>>> -		ret = drm_plane_create_blend_mode_property(plane,
>>> -							   BIT(DRM_MODE_BLEND_PREMULTI));
>>> -		if (ret)
>>> -			return ERR_PTR(ret);
>>> -	}
>>> -
>>>  	return plane;
>>>  }
>> Marek, could you please give your r-b?
> 
> Reviewed-by: Marek Szyprowski <m.szyprowski@samsung.com>

Thanks, applied to misc-fixes

-- 
Best regards,
Dmitry

      reply	other threads:[~2026-10-11 22:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-07 22:22 Dmitry Osipenko
2026-10-08  9:35 ` Dmitry Osipenko
2026-10-08  9:40   ` Marek Szyprowski
2026-10-11 22:04     ` Dmitry Osipenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd9e6f0f-808d-4aa3-992b-e1d0af833175@collabora.com \
    --to=dmitry.osipenko@collabora.com \
    --cc=airlied@redhat.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gurchetansingh@chromium.org \
    --cc=kraxel@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=m.szyprowski@samsung.com \
    --cc=olvaffe@gmail.com \
    --cc=virtualization@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®