From patchwork Tue Jul 3 19:15:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Hellstrom X-Patchwork-Id: 10505021 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C5FF360225 for ; Tue, 3 Jul 2018 19:17:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B618D28C60 for ; Tue, 3 Jul 2018 19:17:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA8A428C7F; Tue, 3 Jul 2018 19:17:49 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 60EFB28C60 for ; Tue, 3 Jul 2018 19:17:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 666176E8F4; Tue, 3 Jul 2018 19:17:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM05-BY2-obe.outbound.protection.outlook.com (mail-eopbgr710046.outbound.protection.outlook.com [40.107.71.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7721C6E8F4 for ; Tue, 3 Jul 2018 19:16:56 +0000 (UTC) Received: from fedoratest.localdomain (155.4.205.56) by DM6PR05MB4587.namprd05.prod.outlook.com (2603:10b6:5:9f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.930.11; Tue, 3 Jul 2018 19:16:53 +0000 From: Thomas Hellstrom To: dri-devel@lists.freedesktop.org Subject: [PATCH -next 15/15] drm/vmwgfx: Remove an obsolete __le32 conversion Date: Tue, 3 Jul 2018 21:15:00 +0200 Message-Id: <20180703191500.2374-16-thellstrom@vmware.com> X-Mailer: git-send-email 2.18.0.rc1 In-Reply-To: <20180703191500.2374-1-thellstrom@vmware.com> References: <20180703191500.2374-1-thellstrom@vmware.com> MIME-Version: 1.0 X-Originating-IP: [155.4.205.56] X-ClientProxiedBy: DM5PR21CA0042.namprd21.prod.outlook.com (2603:10b6:3:ed::28) To DM6PR05MB4587.namprd05.prod.outlook.com (2603:10b6:5:9f::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c51d6a88-8c58-4c19-bcda-08d5e119899a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:DM6PR05MB4587; X-Microsoft-Exchange-Diagnostics: 1; DM6PR05MB4587; 3:MQ5PtXEoTJ3G5yOQ5SqYnhbwsiyADPh4W3kOjMOsPIXk3f4k+ybIF139oX22iOE6QmeRj3GOwvTgfvZKO8zlqCUWa1Nu/HA/nC7hSCdyT8YPZADOnQCBzkCedGR2IoVS2xfTU1XyAsdp9wgGupiOcVay/L5U3TCWzmVpe+hV+HSyULX+WkR2NrWmpEmGbSRwNStwN3lG6FEISZ9RkU/I9xUEuFPX8MrQJIL4OEVZauP3cihzWrCB5SFise4jUZra; 25:DLIxYHTL68cs2VUbBt9nlUIp3leniN1szW7hv8nr39oIbCup3SmeW80gKS0aWKysN7H56FrJMo6wj5dXEHLOPIXaDha0CmxZlAilakmyS0Aun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3cHC8HINHx1Lx9ZMc/n5KTIq; 4:qSh0DJRQoctvAwkq/UZn9QMQH8Ptz957M6smBQAXoDcuX7CSVuv4a4dyyvtRHZP5WEdjnJUc5yMI16U3vX40dCf5nQqHtuY7h8RdfGXiHKx+d47HqQ8T7Tu9UA9O6W9BwJjpKElFCaF4QdV2aa3OpEecAXXv36+HpmBgkSTpAYBcfyrS7wRdI0UtumOoE75BH3S5WDasdAxAPCdv3tp18ShadLmJ8WnQxt6pexpnRyqKpQi4kRBopFxCgVO4ijHwjQjN5W8Gb3kwBauoyvszrxjo4m54rA8NF7Ao6EtTxrXpbbelFsg7Adz+BkdpNlkH X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(61668805478150); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:DM6PR05MB4587; BCL:0; PCL:0; RULEID:; SRVR:DM6PR05MB4587; X-Forefront-PRVS: 0722981D2A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(366004)(39860400002)(396003)(376002)(346002)(199004)(189003)(2361001)(53936002)(76176011)(68736007)(52116002)(51416003)(47776003)(26005)(2351001)(50226002)(16526019)(97736004)(86362001)(386003)(2906002)(6506007)(66066001)(186003)(316002)(16586007)(48376002)(446003)(6486002)(50466002)(11346002)(2616005)(1076002)(956004)(6116002)(6512007)(476003)(81166006)(8676002)(81156014)(36756003)(3846002)(5660300001)(486006)(107886003)(106356001)(305945005)(25786009)(7736002)(4326008)(478600001)(6916009)(105586002)(6666003)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM6PR05MB4587; H:fedoratest.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM6PR05MB4587; 23:zPuRcT8yanBRwf5hHZUEWi9c8QPxhb27pEq73xXOV?= =?us-ascii?Q?KW3RTjkCR+EQxZw2SKpb/5Symr7YSllgxznTr6pO47JINjpCFipYxoHpK5dq?= =?us-ascii?Q?m6KlPbrVRnESJ4FeIkpc2bdIhmweeEu8DWhmNJo8LfNRHg3Y1vxT5TMABwCg?= =?us-ascii?Q?iB86MQL3EAdrxtVO/HYcTg4ZvZ6g0KCjvFTcczGkNU+6Yr/YKw0corHVWCH+?= =?us-ascii?Q?Kro+VYLpD/yZT2Z+zsX7V8cAl79/GI7kHtKr6CUvro6ViTjN6WHfIhb1MRSW?= =?us-ascii?Q?7FxPScb3Hy6PDLp0gDiOyaAbQlDOPf6jgPzBIhYoyHw3H2Dqw+PW16cGnNJv?= =?us-ascii?Q?yPv72OFs/NOjuhP+bPIVyAZCuHPLbK0guwIxiMx9RT3m3h5M26lFHaQ2z/9w?= =?us-ascii?Q?OqjmvcPf+wrwW37v6/Gy1eZaHuMLPurdPdtPTdDOY17idBiU2iOWc+tq+1Y+?= =?us-ascii?Q?8E1SvJfkvKzMApPT9dYpUI7AJEHvLsQcB5Z0rD5r7rrwPxPNBmByX52gqdtc?= =?us-ascii?Q?3TVExL4vWBObYnDN+dBL9Z+L9uM37GFfVqKrrKSoGONnf26BK3iNc8kN73ES?= =?us-ascii?Q?+i9e7nDgaVTGUEMc1pxom+ycqqgMOneMf7CmPQAXq25TsvOy9LhE9gzSdwCc?= =?us-ascii?Q?kb7DvxBtm0qJkTJrYs6oxdYw1DMtxyXPkXUC1cZsdyvKMjFrXi7afBCG3upo?= =?us-ascii?Q?hQsRiRV0UWmV3U3u/k8xJKyI48JXkortg4KXwZ+dIoKMHX67fYdogg+sg4aB?= =?us-ascii?Q?Oddh0WAz573I0Dm9rfZ3UW/6kdH6PJT5Pk5QenwoCUiqS+PmwYwVW5D022g1?= =?us-ascii?Q?d/PLAO2yJswLj3QQBlYVXYnLGUhE9BLupOKpjGrKkunnoFXNGhsT7J+rXk6W?= =?us-ascii?Q?qBeiPKzuT5NgfMNktsyKU54HoJjkK5xx+5KrfA00RJq/rDjZBHnnhSTJgfel?= =?us-ascii?Q?5kYpfUu93Pw/kUYUapkmDShrHOn9ELZinJ6eeq+zBOkzXImI6kioeLUIg9us?= =?us-ascii?Q?sOxynUnKygOSAlodK4rkm0bvwcU2IWvTUdNKfhpltiLWr+O7v8xlGbm1Vd5t?= =?us-ascii?Q?mRY/G0D5WeogE84IjaasfS3OAKPZ/CaHRLmu9yIIOAlGT6Wr4OSzsTpu0imm?= =?us-ascii?Q?KvuFHDCraGDJZPruc/VK6O1z6Mou/QOdJq/Qt4mSnEuk4yEGi7gESl7xq30h?= =?us-ascii?Q?nFj74EmbflZbWnN2fmhO/NKwTx6w56H01kuQThxeiqZqVH3O1bUcg1UjVDmX?= =?us-ascii?Q?Nf6GAb7T60Npbwoei4=3D?= X-Microsoft-Antispam-Message-Info: wD6CSeS8rXJgDj8j17gw+k9mieWyzyQrcWjXCsYWALPpZxk0ZDwoTORd+JztvOv1cYzlYEeLyzryca2v19xZjhM2q5jeNWpgXewGrZvk5w3Juh5FzyEfESE48iXUSVnW0dYWRSmYY2dQ/2OvekKcXvQxiYlCzvLnDg54u2vYAQn3PiLQ6z6JbwoDHXHVkYvPBGbwefgCKgIcsasRTQV4aVs82+pom22NS0EkOvI88w6qcN6Dvn6u4Ckw6xji7U1ShC5u3KBfyUqQd+7/zqbOa+lHv4yJ9EutpZRfqg/r08fnsnO4rbmRbv5uaSG9hNgUh+ZxS0idkT+YbLwEfeywN1wLfQEm1LenhZ0zVa1kqy8= X-Microsoft-Exchange-Diagnostics: 1; DM6PR05MB4587; 6:GljKbrEN/ffVBg5o8/5ObJADelennOj8/leypF+smZ5kWdpdkEOea8LZ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z4I6Z0iu98Cq1i66DheiSwC07rO3uX0mOui+YiaflmIj0i/nfCqqmzRvlDzIRcvGJ11zlU/KZXCr4+kvo61SjqcPlKEDTjvKpxQWf+oRSUdN/IqCZYYBbhj4jjmbyTtIiRGKPiCg= X-OriginatorOrg: vmware.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Jul 2018 19:16:53.4889 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c51d6a88-8c58-4c19-bcda-08d5e119899a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: b39138ca-3cee-4b4a-a4d6-cd83d9dd62f0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR05MB4587 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Thomas Hellstrom , linux-graphics-maintainer@vmware.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP We've long ago given up on enforcing the device format is always little endian, so remove a leftover conversion. Signed-off-by: Thomas Hellstrom Reviewed-by: Deepak Rawat --- drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c b/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c index f2af53613803..e90f8d39de53 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c @@ -1072,7 +1072,7 @@ static int vmw_gb_surface_create(struct vmw_resource *res) cmd2->header.size = cmd_len; cmd2->body.sid = srf->res.id; cmd2->body.surfaceFlags = srf->flags; - cmd2->body.format = cpu_to_le32(srf->format); + cmd2->body.format = srf->format; cmd2->body.numMipLevels = srf->mip_levels[0]; cmd2->body.multisampleCount = srf->multisample_count; cmd2->body.autogenFilter = srf->autogen_filter; @@ -1085,7 +1085,7 @@ static int vmw_gb_surface_create(struct vmw_resource *res) cmd->header.size = cmd_len; cmd->body.sid = srf->res.id; cmd->body.surfaceFlags = srf->flags; - cmd->body.format = cpu_to_le32(srf->format); + cmd->body.format = srf->format; cmd->body.numMipLevels = srf->mip_levels[0]; cmd->body.multisampleCount = srf->multisample_count; cmd->body.autogenFilter = srf->autogen_filter;