From patchwork Thu Feb 11 17:20:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Wentland X-Patchwork-Id: 8283281 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 55AB29F3CD for ; Thu, 11 Feb 2016 17:22:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A12B202FE for ; Thu, 11 Feb 2016 17:22:23 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 13DD420351 for ; Thu, 11 Feb 2016 17:22:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 93FEC7A0BD; Thu, 11 Feb 2016 09:21:09 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0071.outbound.protection.outlook.com [207.46.100.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id E2AAD7A0BD for ; Thu, 11 Feb 2016 09:21:07 -0800 (PST) Received: from DM3PR12CA0018.namprd12.prod.outlook.com (10.164.12.156) by BN4PR12MB0849.namprd12.prod.outlook.com (10.164.59.11) with Microsoft SMTP Server (TLS) id 15.1.409.15; Thu, 11 Feb 2016 17:21:05 +0000 Received: from BY2NAM03FT061.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::207) by DM3PR12CA0018.outlook.office365.com (2a01:111:e400:599f::28) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Thu, 11 Feb 2016 17:21:05 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.222) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from atltwp02.amd.com (165.204.84.222) by BY2NAM03FT061.mail.protection.outlook.com (10.152.85.107) with Microsoft SMTP Server id 15.1.415.6 via Frontend Transport; Thu, 11 Feb 2016 17:21:05 +0000 X-WSS-ID: 0O2E870-08-0A6-02 X-M-MSG: Received: from satlvexedge02.amd.com (satlvexedge02.amd.com [10.177.96.29]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by atltwp02.amd.com (Axway MailGate 5.3.1) with ESMTPS id 2BF24D22F8A for ; Thu, 11 Feb 2016 12:20:59 -0500 (EST) Received: from SATLEXCHOV01.amd.com (10.181.40.71) by SATLVEXEDGE02.amd.com (10.177.96.29) with Microsoft SMTP Server (TLS) id 14.3.195.1; Thu, 11 Feb 2016 11:21:35 -0600 Received: from STOREXDAG03.amd.com (10.1.13.12) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server (TLS) id 14.3.266.1; Thu, 11 Feb 2016 11:21:02 -0600 Received: from cnhwentlanub.amd.com (172.29.225.36) by storexdag03.amd.com (10.1.13.12) with Microsoft SMTP Server id 14.3.266.1; Thu, 11 Feb 2016 12:21:01 -0500 From: Harry Wentland To: Subject: [PATCH 27/29] drm/amd/dal: Correctly interpret rotation as bit set Date: Thu, 11 Feb 2016 12:20:07 -0500 Message-ID: <1455211209-26733-28-git-send-email-harry.wentland@amd.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1455211209-26733-1-git-send-email-harry.wentland@amd.com> References: <1455211209-26733-1-git-send-email-harry.wentland@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:165.204.84.222; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(428002)(199003)(189002)(586003)(50466002)(4326007)(77096005)(1096002)(11100500001)(5003600100002)(53416004)(86362001)(47776003)(2906002)(19580405001)(19580395003)(5003940100001)(5008740100001)(1220700001)(2950100001)(229853001)(76176999)(50986999)(36756003)(50226001)(33646002)(92566002)(87936001)(2351001)(450100001)(189998001)(48376002)(106466001)(105586002)(101416001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN4PR12MB0849; H:atltwp02.amd.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-MS-Office365-Filtering-Correlation-Id: a1c63196-6d77-4ffb-5c5c-08d33307b956 X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0849; 2:63Ns1OJa9KgyXj1ednCNyTmekqGzaYPKkBh6V8IsTNEQLau9NUsYLRSE/l/eI3cdWgtVLIsX69OASPG0+yvOelBkbwRs5i1jzB0mzFMbslYTQnqsgSMgDaXwTh7MK70fSme7+4W/1kqtO4J1x8cv8gAMZ7U4WLX1+BrF8lJOY2jYd+vUFoxBmrqXeVxM/lJA; 3:IVw3gY7SKJIpd4DUoGOXmiqudsivjpOqEHokvcs/G3P7HaPEoTP74IKLqvDs3fIWSPaDCH8Cv0OJ5LOvccQ9ytCdUnDNBpFH5m0LdK3Px4C9kgf4x8mmC3L+VlYXErOR3PFx4NZqHo42E19nrNUzvMDs9eHjCsTITx8Oy5z725L0+N9a0EcbfH4srS1AkJ/u8WFr3FWGLc47PtnZYp+ABZlsGqSG9yl7tkHAEyWShW4=; 25:Ly7NAT8tBiX4rnK+Mocy6FuUip0OTSuQcbzi9HlWxxfZ+DNoxQWwPcnR7AqOMKDA3tyP60JGDl98+9x5Bz7E+nNjKUJbDXDLW2QhBK3nQJFh3ikMpMQFW7FLi3y4lS8I1rTBDlHn8d8cFG6KmyNTpiD/bIj0+mqhaV+HqV7uFq6H641zvMWtPlu85SE8NIfHRolk2QHYJx46Suf6AK92XO77HbglSZ5YdSNwBrhF/6+9jgdtQLgzFJY784B/LGdGc+fXtNW8/EsjexvDmxZMwfAqcotD2lqQDhc1DshMLL8uKzg3vRw3LLIrYadOyyxK X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN4PR12MB0849; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0849; 20:MkcCMOPMOGi9KiXIYiB1YqpC6kmSTnhX7a2I3ta1kCy+S44fqnmTRfhnRR2Ntn050JrOp+PCKK8SbENOykf4HzDHSbP1v6WzPheD4vLBfJ06BUbKmB6LatSPRthMnJ5MazN6L7F0SuFey9AvTpOHG+GiSU56v5iIQ29r+88w6ynSmbSNkHwBwHG4o0aJicLVii3Giqu931A7/kncn7MlY1eRsfsG74lkPF0u7EtEWAOFXutrk3gZIZKJ9fdzRDps4VPm91+jOyzQbLShthROz5KojICs8tlbebAFl0/Me1N+5dQ4+mqEpXv+G4/SYxTkb1xEvKy0EWZyPjbEm56U6gZgKo/n7+u3RRtowOZOuOV8B1T5A9UAClG+UjlaEoADWrBy7J3X+7hJqo7dljQ98kj7iDj0+cORBHKk9IuqUZ/MyE3Ou3ZI2uY5ualQ4DwpmgUR6lVITH/Wb/jOAljfCqmOFXQyY5mFABVTKTmD1a9GoqiqYEnNUmXl1+yRP8NM X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(13024025)(13015025)(5005006)(13018025)(13023025)(13017025)(3002001)(10201501046); SRVR:BN4PR12MB0849; BCL:0; PCL:0; RULEID:; SRVR:BN4PR12MB0849; X-Microsoft-Exchange-Diagnostics: 1; BN4PR12MB0849; 4:GhADqfRJqUxoXkF1vPv/JdfhVlhsoV27CJiTWLHGDXIVXTQjLh3t+XyYAmN4zXML4Afwq2C+AQ6Dsdh0dqpjbRVB3wtAKH52xtS7BNOD0ABIcXlgnTVzW7vUG8vJJ66xwLEY157tNTeV0WXpPOfTyQwvIKwUDQgMH63Q3Va5Cn/CB07Ny6e3Dqw9mAK7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azU7TxXepaMM3/vzIexdlW1ah2Xbs6AUK/tYV0pep87d6cmSAWtyHpXKlGIUBF7pnPtp0lkVl SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2016 17:21:05.4729 (UTC) X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.222]; Helo=[atltwp02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR12MB0849 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.4 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Harry Wentland Reviewed-by: Mykola Lysenko --- drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c index 1cc9fd1054ab..da6c0116aa1a 100644 --- a/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c +++ b/drivers/gpu/drm/amd/dal/amdgpu_dm/amdgpu_dm_types.c @@ -366,16 +366,16 @@ static bool fill_rects_from_plane_state( surface->clip_rect = surface->dst_rect; switch (state->rotation) { - case DRM_ROTATE_0: + case BIT(DRM_ROTATE_0): surface->rotation = ROTATION_ANGLE_0; break; - case DRM_ROTATE_90: + case BIT(DRM_ROTATE_90): surface->rotation = ROTATION_ANGLE_90; break; - case DRM_ROTATE_180: + case BIT(DRM_ROTATE_180): surface->rotation = ROTATION_ANGLE_180; break; - case DRM_ROTATE_270: + case BIT(DRM_ROTATE_270): surface->rotation = ROTATION_ANGLE_270; break; default: