Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1984756lqe; Tue, 9 Apr 2024 06:38:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUew9oqjiWv5Bp/BNsIqHZCJihtjXV0b8qnLEyad7Basi3yJfcyWUo4lby2GqfWJQe2/UY62H7EnfwLAmea5H5So3P8sIVeRh/FUzrhxQ== X-Google-Smtp-Source: AGHT+IEjwWTYgdQZu7gQT5YoWmRc6aTWu9vLsPHQ55lmUAee+NgwFSBs32NernIe+K+MSs/FZZmK X-Received: by 2002:a17:902:d34d:b0:1e0:2977:9dfc with SMTP id l13-20020a170902d34d00b001e029779dfcmr11834600plk.55.1712669899879; Tue, 09 Apr 2024 06:38:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712669899; cv=pass; d=google.com; s=arc-20160816; b=CKmPxnuLyZx9VhlZeJoPYLk1ycQyiQkx7SzIZQkt/8jaiuJcmDjz3ep064d2psO8Dw d2XTvIBPwRRNKsjDfAUmKpmCzp5BXdh4NlpeALzphZz5W20Lk0KJzE5yOmpBV4Ql9z9O 8gbsxUt20WYigDPOpFIEcwWE7y1fMD5ZfKz9SS7DrrD9LNNXDWplzDN1zxEqxyR1puS8 LcIQ2wquLH1C+kcUWK+WnbTUyMJN3xccZ+25/pOZQEoQf61NiscJP9//xlZBR5X1BGdw +rG3QwTqtYs53E+IzUYea39RzmgdJG1oKJnjLRtR/7dHk8cCcSZTMXNPdkNbD0Jmovtf fM7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=E2u0GRNid3Th9H3bLBVSqGYconIdWdfP+/YzKnPowrI=; fh=fk3KVJ6e//5DsoobLkOAw6e5yTly2+YwRiAZojsT3v4=; b=V27j1fN9668uA7OUAaHEWy4iVNyhC+B7cJAFlx/uJrbapQH7w4mpDvHDKFiOKhlDr7 gB/z10OYxwoQtGZ1PRG985VOHb3v1oLMlrVIqSlN5hPbO9+fBzTXEzsNbtAB1M59p5Ug F2kZspZYqNT9qt8OSAyEfPFtL2trh4TTXLY0gJm+RJrSnUcXC7fk4PPzkuzAtS1tnr9U zDaOIQetc1HtPMD+fIjH6R2yvb44PQm0s/wdHtu46m48QlK1fc5tY+0v3r5muYl/wR0j vIIcurdTT+zTcKh8ps5ASp+fP/fOKWHHz/QjGM73wux7gToE25qqIuu8nJG2PClkValH hyYQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mPc1BX4S; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-136949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lv4-20020a1709032a8400b001e039a37289si8946985plb.613.2024.04.09.06.38.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 06:38:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-136949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mPc1BX4S; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-136949-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-136949-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6E7EFB251B0 for ; Tue, 9 Apr 2024 13:32:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B4111311BB; Tue, 9 Apr 2024 13:26:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="mPc1BX4S" Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (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 6AA4F130E4A for ; Tue, 9 Apr 2024 13:25:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.193 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712669160; cv=none; b=JQGIQAGoTqEwNvwVdgJCckmQrKjVrkMuLY2ArRYbhKHKNbeOx6PX1+y6rw4Jld1fDdX5XlrNlipFfuj9wdGqCeXhS2lwtB8fzmK29YUeu3Drn0/O936H8Mj8xb/Lb3LgStTq9hPBEGxcoxyc/rpRq9s/wG4GrJlnxvjOFl8av1A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712669160; c=relaxed/simple; bh=4XaxvY/cAweYN7SOJe5yq3QGEn/dKNihs/Jfqv1vCLE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=QpQppP+VndTW9lISzhkkiFkRJ/uBE6aIiHHwS5FNNS5JBwN4OWB8vBPB0uFQZUgP5RKO2MUtoen2Zraj4UzAvHbRPmHG2mQimKQ2cWtYnnD7eOl8vSJNSM2nH1NrKuBSgSwEjYX+B8zpOLdyW/mHyrxlstQlK9N25c3ABhrIr3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=mPc1BX4S; arc=none smtp.client-ip=217.70.183.193 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 1F5D0240018; Tue, 9 Apr 2024 13:25:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712669156; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=E2u0GRNid3Th9H3bLBVSqGYconIdWdfP+/YzKnPowrI=; b=mPc1BX4S65GLkMe6nzqtjBgmqUYrlBW+ho+xt6OPBW9BuF5slLywY3ngZfmifLRdWe3qnE dl9b9ry3mg9wBeIiJXFnWxG4/VvCSE20iU0xLz3EQs3ze1lHLmyLYcb0JtAP/yWI1mIxXo AfNgnB2SvXkG2fknBLbeG0qDm7PTzlqqUtm38N5fzL4sd0vSUJ3k1OClmyoGD/bHSY07eP k6YDKzP1XNjs4e1WJXmksLpZBEPwMax26YekQI4tQVnlHDHoZw54Q0G4HvXvMz53a+Bnhi gwKD2M5PPqIkPMM/oVl5V4C/lwdu4fDHM35Fqt8ELneqT2a++pQxHCGbMc1NMw== From: Louis Chauvet Date: Tue, 09 Apr 2024 15:25:29 +0200 Subject: [PATCH v6 11/17] drm/vkms: Remove useless drm_rotation_simplify Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240409-yuv-v6-11-de1c5728fd70@bootlin.com> References: <20240409-yuv-v6-0-de1c5728fd70@bootlin.com> In-Reply-To: <20240409-yuv-v6-0-de1c5728fd70@bootlin.com> To: Rodrigo Siqueira , Melissa Wen , =?utf-8?q?Ma=C3=ADra_Canal?= , Haneen Mohammed , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , rdunlap@infradead.org, arthurgrillo@riseup.net, Jonathan Corbet , pekka.paalanen@haloniitty.fi Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, jeremie.dautheribes@bootlin.com, miquel.raynal@bootlin.com, thomas.petazzoni@bootlin.com, seanpaul@google.com, marcheu@google.com, nicolejadeyee@google.com, Louis Chauvet X-Mailer: b4 0.14-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1084; i=louis.chauvet@bootlin.com; h=from:subject:message-id; bh=4XaxvY/cAweYN7SOJe5yq3QGEn/dKNihs/Jfqv1vCLE=; b=owEBbQKS/ZANAwAIASCtLsZbECziAcsmYgBmFUHS0flirwrtAxXfjk0mjdEIFfOqu0cP2F7YR Jt/Uzh8/L+JAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZhVB0gAKCRAgrS7GWxAs 4sPTD/9dujULLjIHUBix3mcO6jW64FcLIURlem6vdE9lSg3/s37eFNMvhnuq3jl/jOC+k/krX2U D34NSBiLpzOCgTpL3KKEV87jeV8E9+8/gnmM1HFp9+4Wxxqbq14BaEYvXkobwiPkU+s0oybSUXu r3yhlhpP6TYgMO7A9PcuQUN4uxZnVqlJa9uZVoOaJ5Go8nzuOXYLrXBPXOCRDj8zMXgmDYVoc4t 7o7aue4BFA7PRP9gx7MnctHplbboMmauggyI31smiV117HZ4NWT0jqriomgGfjZRIYU4j8V2M4Q Uuz414R96p8WdBg9a3ZPBweL+Px+59Eu504xFkGVUuRByRHhb8tVkPF2CC9UYpSrnuXO0t77Tap 4bSIaP2gmoRuelsilNXB2zpFZZuFqD307KjrEeya/0lCBkHoMn75PPmvTT920cAoNQRdMtJcmti gpn83OMjc/SOZRaaEq15gEACAqIZq86tA3kaIiHogzs08D0gL2nqzdcy83FsZ0j01tI5OztW3GS tVA5bs0wC3nHxaqOcxYiisOf1it8M1PnVeOypNen/8bB+6wJSU7tYYPMfCmncdaAlObG5eCTwrV ua2DSBV1hKfrFfNukSbNkud+Kng9ilNvPoloVXTU5pUsjTgP5kP16rXxlugDgp4y+r4uVrutKfG Xr34vVMQ9laYStg== X-Developer-Key: i=louis.chauvet@bootlin.com; a=openpgp; fpr=8B7104AE9A272D6693F527F2EC1883F55E0B40A5 X-GND-Sasl: louis.chauvet@bootlin.com As all the rotation are now supported by VKMS, this simplification does not make sense anymore, so remove it. Signed-off-by: Louis Chauvet --- drivers/gpu/drm/vkms/vkms_plane.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/vkms/vkms_plane.c b/drivers/gpu/drm/vkms/vkms_plane.c index 8875bed76410..5a028ee96c91 100644 --- a/drivers/gpu/drm/vkms/vkms_plane.c +++ b/drivers/gpu/drm/vkms/vkms_plane.c @@ -115,12 +115,7 @@ static void vkms_plane_atomic_update(struct drm_plane *plane, frame_info->fb = fb; memcpy(&frame_info->map, &shadow_plane_state->data, sizeof(frame_info->map)); drm_framebuffer_get(frame_info->fb); - frame_info->rotation = drm_rotation_simplify(new_state->rotation, DRM_MODE_ROTATE_0 | - DRM_MODE_ROTATE_90 | - DRM_MODE_ROTATE_270 | - DRM_MODE_REFLECT_X | - DRM_MODE_REFLECT_Y); - + frame_info->rotation = new_state->rotation; vkms_plane_state->pixel_read_line = get_pixel_read_line_function(fmt); } -- 2.43.0