Message ID | 1467186132-10594-1-git-send-email-thellstrom@vmware.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 EA98260757 for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 29 Jun 2016 07:43:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D30E5285BD for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 29 Jun 2016 07:43:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C595828649; Wed, 29 Jun 2016 07:43:10 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13371285BD for <patchwork-dri-devel@patchwork.kernel.org>; Wed, 29 Jun 2016 07:43:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ED2F76E378; Wed, 29 Jun 2016 07:43:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from smtp-outbound-1.vmware.com (smtp-outbound-1.vmware.com [208.91.2.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id B57A06E26F for <dri-devel@lists.freedesktop.org>; Wed, 29 Jun 2016 07:43:03 +0000 (UTC) Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-1.vmware.com (Postfix) with ESMTP id B6F9C98725; Wed, 29 Jun 2016 00:43:02 -0700 (PDT) Received: from EX13-CAS-007.vmware.com (ex13-cas-007.vmware.com [10.113.191.57]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 01B6A40384; Wed, 29 Jun 2016 00:43:03 -0700 (PDT) Received: from EX13-CAS-004.vmware.com (10.113.191.54) by EX13-MBX-024.vmware.com (10.113.191.44) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Wed, 29 Jun 2016 00:42:59 -0700 Received: from na01-bl2-obe.outbound.protection.outlook.com (10.113.170.11) by EX13-CAS-004.vmware.com (10.113.191.54) with Microsoft SMTP Server (TLS) id 15.0.1156.6 via Frontend Transport; Wed, 29 Jun 2016 00:42:59 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=onevmw.onmicrosoft.com; s=selector1-vmware-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6ZTuB/YLRlqHEeI3pea9TmGR3szziJVaSsI7f+ldA0s=; b=MPVkCla4HgpYSwVQHxEcsEzg+DIGO2ONEdo8xpzmgBWmIb+mJHweVWAR8WH0geUqBCX5ouwbbBEQAqv3cXRfiDIee6SACWuFjasp1PBIkXO5ElgptgqAWFgq4hITldEp8SjWbH4OMO0UHmbLNOAGDdgzPSRUm4oLlizewd0OKiM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=thellstrom@vmware.com; Received: from localhost.localdomain.localdomain (155.4.128.115) by SN1PR05MB2333.namprd05.prod.outlook.com (10.169.125.23) with Microsoft SMTP Server (TLS) id 15.1.523.12; Wed, 29 Jun 2016 07:42:50 +0000 From: Thomas Hellstrom <thellstrom@vmware.com> To: <dri-devel@lists.freedesktop.org> Subject: [PATCH] drm/vmwgfx: Fix corner case screen target surface management v2 Date: Wed, 29 Jun 2016 09:42:12 +0200 Message-ID: <1467186132-10594-1-git-send-email-thellstrom@vmware.com> X-Mailer: git-send-email 2.5.5 MIME-Version: 1.0 X-Originating-IP: [155.4.128.115] X-ClientProxiedBy: SN1PR17CA0054.namprd17.prod.outlook.com (10.163.3.150) To SN1PR05MB2333.namprd05.prod.outlook.com (10.169.125.23) X-MS-Office365-Filtering-Correlation-Id: dfd60a62-aedc-49ac-b3b6-08d39ff0f95d X-Microsoft-Exchange-Diagnostics: 1; SN1PR05MB2333; 2:AfCuynRFdHaGoXA1aGP4vLEjSYPX8hxRPyI8IXNWMi3fN2FAd8SxBr4d+vU1YHEt3L1DtEO/BXeQrzjYYylQR+ef5dgkgP9bVDjcZ9AqmAkaioUk5qQdjHajrlFu8oglWK4OsVcL7cnroYi3x6iqY0AlU58slDY5Q4jhCAszGUBQ0tm+H31KXfuXpv+dpY/I; 3:ftWZuxCH0412ZBHyuod/BmF/tw4kif3C5o5Dyefwc1XG1ujCmJkUyUziOkuhMu0zqWlcHnrLTR6+FmONrJhAGPch64ysCPWsHFw8NulbEw9qmN3ZrbdUQK1rWIpcHKHu X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR05MB2333; X-Microsoft-Exchange-Diagnostics: 1; SN1PR05MB2333; 25:taCmXJ0RKB9jW3YSZMCC5PgXhx5Fe4nTzv4Yj6CrNOZNCAMUymqaxji6ZHEwsscybFja0+0o45SrxcA78X/FzcRc/JtidT7czwlf3ayuc7pp9ip5h6KB13sThOB13bNHfP/DQ8NmK0mrOFSjzLmQRi4gnUkynCa1tk1BJA3+50gqe0sb55cTU++z2xATyFDJBQ81DYsm1mBvyiHKZt1HhDzpxwBEr+83GRW/b/JjtQygvvJ9cORslBzYRbkWa5v+oFCeqhbjiiGXuDuITq/YDuqmqR9Dvb5J/pjfjaBY2e08RENllg+Tu6ibmieYPcb+kjSlOlYwUtGYDNgIN8jY5Rmoy5FFNi1JzXQjpSqHEeu1Ffr8FkoLJG3pISZVeCg1fmm3jA35W/rafp1o70MXtzy/zKB2PPl3BMQ8BlE1C7oYiOM/OBaDHcstWIofJoyijAP6K6Fw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N1PR05MB233360DCE6FC70572F16F700A1230@SN1PR05MB2333.namprd05.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(61668805478150)(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:SN1PR05MB2333; BCL:0; PCL:0; RULEID:; SRVR:SN1PR05MB2333; X-Forefront-PRVS: 09888BC01D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(189002)(47776003)(105586002)(7736002)(106356001)(86362001)(66066001)(50226002)(7846002)(5003940100001)(8676002)(229853001)(77096005)(81156014)(81166006)(50466002)(19580405001)(19580395003)(2351001)(305945005)(101416001)(42186005)(110136002)(68736007)(586003)(50986999)(2906002)(3846002)(33646002)(97736004)(6116002)(189998001)(4326007)(48376002)(36756003)(92566002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR05MB2333; H:localhost.localdomain.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: vmware.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR05MB2333; 23:P/3T5KjtFBT37+t6IcJKRQhaIIhna8LEPWj8Axf/a?= =?us-ascii?Q?A1VpuCB+usxLpqJJj18woQPCL4tb2mYaqXJrGcnZ9rN7aTlSTm49ujtXvJap?= =?us-ascii?Q?2V0LKpw2yKMGOUiAoJ3oZMz/HlT5u5VR7Oxciy/72Jxy+Mk8jgAg7YcuyCR3?= =?us-ascii?Q?R5+tyxr2SZxsCgkx/TaeA5GKi/aEv1p6I9LG7BWOPPsei1D4y2yIEbufnS7i?= =?us-ascii?Q?GcE4WuXzyD3bWmiGczG/jAoZSx5E5NqUG45zRNPD8KE/SXpFk4fhwrUfzJa9?= =?us-ascii?Q?pLfFkKv6WjQMy00rVQbidUY6opZsbbIeXEZGdlZ1Kg3Lx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XRCZiHgYqilPUdyO/ljksn+jXuxpt48hg8ZBJY2uti5+ntG/uwB/ukDMohPbnI7QoQLVy1+lM5aoRxhVB2oYDM9cs30XlBbHsayEV3atFMqFBsbwQiTrxkOxjsJDUOXImGGsnoqCLjnfMLSO19eRyl34kB8wjZuQVawUhzMcjEeR1Wc; 5:TqdCXVO+yi0z+AH/FGDX7fQmspSF9vA6MaElXZPd8+1sL2N2skzwAoM15uhQSaBy1uXdZnkEOccWBbeqbW61XOcwpxZ3QmvgkbGJ6cPneXF3JMCqEQrjdYbS41UEId9pvPgu37RD6EPtSsKh3mKHjA==; 24:6LnUlOgJpFn+352twNhKHUtWOaahmQBmmLHZAiykwmLj4bK4+uW+P59DKztE7rAC/S/lK6lssliqulrzR8HGQRu1Wm8loqVv2OYjovW8b1E=; 7:bqIPrypNUAktp5i762ZsH2v9pZdcSlwvznfJtHb5af6KTBSclGRj0WBV7NgE+fU4mNnR6Q2C1UoFdHvjvhhPloiQc5Fh6Qg/fntBBjcSt5kaWan+6S2KcVTbpucXM+Sz4qEi4q04Fh9RcMQy+VjWLfWHsgwxYyfVVyKLHiFbXQnSIHjmAfLILn7ah360VDiZqXV6JPlqf/6LkuGzuZR++U03/Xq3j8y1Pdfjpo/UyaQvoPf3eMYTrwKvF2wfHwyJm8/bDSlmSkRdUA/vFdKOrg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR05MB2333; 20:XqIV4B+8bzK7f9+OyqgjGgTKwyrf1v7jQnkZUHJkgHrjFKnxpobP5DBZ7ptDJpY54jctvvnTjapJSATJyZfFOgzq63Rcxquz8YDCGt4JPgzYqo/+fHRhwCUvy/wLtj/23DlmoG22iFwl6BEjMJJm6CiMj6dr08W5JJf9dWHWud8= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2016 07:42:50.5039 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR05MB2333 X-OriginatorOrg: vmware.com Cc: Thomas Hellstrom <thellstrom@vmware.com>, linux-graphics-maintainer@vmware.com, stable@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c index 9ca818f..41932a7 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c @@ -399,8 +399,10 @@ static int vmw_stdu_bind_fb(struct vmw_private *dev_priv, WARN_ON_ONCE(!stdu->defined); - if (!vfb->dmabuf && new_fb->width == mode->hdisplay && - new_fb->height == mode->vdisplay) + new_vfbs = (vfb->dmabuf) ? NULL : vmw_framebuffer_to_vfbs(new_fb); + + if (new_vfbs && new_vfbs->surface->base_size.width == mode->hdisplay && + new_vfbs->surface->base_size.height == mode->vdisplay) new_content_type = SAME_AS_DISPLAY; else if (vfb->dmabuf) new_content_type = SEPARATE_DMA; @@ -444,7 +446,6 @@ static int vmw_stdu_bind_fb(struct vmw_private *dev_priv, content_srf.mip_levels[0] = 1; content_srf.multisample_count = 0; } else { - new_vfbs = vmw_framebuffer_to_vfbs(new_fb); content_srf = *new_vfbs->surface; } @@ -464,7 +465,6 @@ static int vmw_stdu_bind_fb(struct vmw_private *dev_priv, return ret; } } else if (new_content_type == SAME_AS_DISPLAY) { - new_vfbs = vmw_framebuffer_to_vfbs(new_fb); new_display_srf = vmw_surface_reference(new_vfbs->surface); }