Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1883615lqo; Mon, 13 May 2024 00:52:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWZMZbSAborfVPZkX19K76Cd7ao1HuJ/FGj4K0ZlYRH6okbyuZYo07Lf4z1dnqVb97VkdoBKSwgUxihQd11rv4ZNlA8LEkUtUo+s4VUGg== X-Google-Smtp-Source: AGHT+IFZmlDwmWkYeAvU8q6VEkSeo5DWwstYc5fSipa2sTTV0heweG+KUvx140im80CHWx4DzbAZ X-Received: by 2002:a05:622a:190c:b0:43a:5f5e:c10b with SMTP id d75a77b69052e-43dfcdd5a23mr170259551cf.20.1715586758416; Mon, 13 May 2024 00:52:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715586758; cv=pass; d=google.com; s=arc-20160816; b=Y+4Wnmro78aSy/FTkbuv9e65j43VYIuZ9yRVwimIOXze+c4A5jOEgNEv8AaEXdTic5 l5n7O4zUjY8xVWh0j5K2sC/Nu+1T7P7MPOKIV3Uk/J2MVk2pzYw9mBQD5tPHEAhkvkFM inhIifZfUvc2oPM/ink7LwEZSNSvaWiA6iFNlBzkPsc4B5uGKl4d+YzgWZQpPsfBkJXU yKUjlxmY8K9XhuYN+AgAM+rpViiq8d7fdrc31MNhlSfNhP1/j7zL+QG0jvHM4JX3sov3 RMCv6QZ/5hP1Ffad2weNlIfoRYjxSCnVebF8RHhjkTwYBR+hfoRR4ixu5RQLqbvVpnoh aA8w== 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=z6QJBejRB4UIVVBulKVlIb1TBeEN2xAQAhfhefcDJuU=; fh=fk3KVJ6e//5DsoobLkOAw6e5yTly2+YwRiAZojsT3v4=; b=fk4uXUQ6ZNanlNyQzHcyQbYbBAXYghYhHY9t4LiavNHSnVi9B6a1h05GHK+bx0bV84 xDPP9G8TAhOQDBZulaVPW0ZjdyU3CwwHXNSqzEo2H8I0eFRHqHUL3t428M1Hwz12AFN0 BFnCYy1nepcpKtFScTvXcFJSsH3t7ifhYGC+Ex1ANHRd1vYOyOOwFqfDpx1rxD1/5h/t fJQoADtfETI/3KmoxiRbFkLh5tOGkb/ifnh99veK6bzfFDvDXrGXGFDJrhquwAOTlCUH JV2Qvk+Kd4raulEKVQXDc35ZHWJ57TZT25VTAQGRDGgrnBtvRNIf/c8HGk+WUKw49UNd 86sQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nAt27+4x; 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-177298-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177298-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43df56b32d3si91744911cf.591.2024.05.13.00.52.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 May 2024 00:52:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177298-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=nAt27+4x; 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-177298-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177298-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 21BD21C21146 for ; Mon, 13 May 2024 07:52:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 86C2A149017; Mon, 13 May 2024 07:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="nAt27+4x" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 0B8E1146D65 for ; Mon, 13 May 2024 07:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715586655; cv=none; b=tKgt7Sq0wq48ssyoeqrUoIpFeMKHV5FWkNAnLlNuH0UFQT5Ab0sy7UaLJaidZo7tpGF23NVtYX2rDbt9RsM+GmiRMOWnD/7kHesJ47kn3uQwbJv+vq3P0ywjIe8y8zD7styOXJjWNE5GlfG8y63uFMJYeIt0e8b2Lwb5/uj0knY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715586655; c=relaxed/simple; bh=wUSBUJCSOtsms0zYAayKwF/xjzoMjd+l5I3zX1xUo2g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WETd12n/GJR4bQgr2kUs5WAktbmlz1SXZmq4bda2oxAnf8D5zdQTwHzSc39a4U1UAOxs2HNlBWg4NjA62hLatd+kFTh60d0FOG8nuknOTvUmPnwtJiDiFs6gtctSc9JOFPL7bKT1U/BnxcrvvqP3jKyKxrZIZiKeQTJ7DpaSQpY= 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=nAt27+4x; arc=none smtp.client-ip=217.70.183.200 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 2F6AF20016; Mon, 13 May 2024 07:50:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715586652; 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=z6QJBejRB4UIVVBulKVlIb1TBeEN2xAQAhfhefcDJuU=; b=nAt27+4xF6kS9qKcoRQG30arhbc5tvm4lADaWLU0HXkgVy2Vwa0gZOFbh1N4i2QnAL3Qt+ RJ2m3VoBfbeRWjJbHSUMpgaIp0jg9uq4wu/9y4hiOrokYL7DaypDCQpmmWueOcy5CfYiYz 0SAM2Hf+Fqr1rRqXSRkOyb2CwIYrNcnDw6L8zoSjovjcHo5BqaJXntY59Cw//IFCZiPQKQ gx3iPHhuwQvjb3aAZzAScsWYty22Bu6hWlKZMlxBHZKbrKhjbivmm31aVwIoqEm0m2ArwC 0+nKO8qGxr5v3Q9rOEELMrO9iIx4/OJzZReUN/CQ+041N3de/qHgyUqnm9Mqkw== From: Louis Chauvet Date: Mon, 13 May 2024 09:50:32 +0200 Subject: [PATCH v7 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: <20240513-yuv-v7-11-380e9ffec502@bootlin.com> References: <20240513-yuv-v7-0-380e9ffec502@bootlin.com> In-Reply-To: <20240513-yuv-v7-0-380e9ffec502@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=wUSBUJCSOtsms0zYAayKwF/xjzoMjd+l5I3zX1xUo2g=; b=owEBbQKS/ZANAwAIASCtLsZbECziAcsmYgBmQcZD+LHWXLuD8UC/V2SidZJGkv8n0aUZiZbIL RxqTEZBxoqJAjMEAAEIAB0WIQRPj7g/vng8MQxQWQQgrS7GWxAs4gUCZkHGQwAKCRAgrS7GWxAs 4oDgEADY87bjjEV2efg9Fo/rPkHxgg+fydezcZIl6O+9mBqI4g4dme4e0GynlaOiORH7N+0Xn+T zNRSK3w9Rms/z3w2Mf+P/dx+/ciq+gSpiZxWZlm1D3VBT3cJgwVoFmz8Z88yXUeSjR7QkFXMk3z DJahJ4dAPqtOOai9QBjWPHqhHuT7ivrvnJYOsQV/cJd5xnJ6UYNo2vJx9V6Ab0uveKMHSwK7ukr KE8xlfirD7aLbtae7Xi41WP5AICtfCUTSTjzdUJ3pqLqQPGOQe8DUdlpUluBeCDyj3kxa7snpGO P+zNIhBmzJQm3ELeWrxjYU6mcUb4Q4QRxJi5eXmRGuQUMp3nYJfjWJKYYICUsSMLdDrZB90E9DO Im8XsDFdoF4us9if+YonM065rthmG/7pLsC1MA9yLKdume1bH9GNcDiN5kPRFqo83LxJJSUapNq dB2bsyJD//LFlxgELcWY5WlKYLCpeHCwtt/hRKsF8hw/yDH5X+AuZL3pZUqIfyxpEOCq1vynF3i cBOe4p5zmUP5Gqh7sg/UA0rcwJwl2Hf/TAJq/ASAYypHMVoFBTsBh4q/TshRfGBXrW+YbBDvAaR VJoV9BqntwSlkeqefJ2gD9ulm6ThAIO+CS3mD6XneiHXYSbLnNJ+m6j1onwmSQT3teb6wjC2y7h VFc5RzrKPlfi1FA== 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.2