Message ID | 20200323231238.14839-2-rscheidegger.oss@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=EwVE=5I=lists.freedesktop.org=dri-devel-bounces@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EF5721392 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 23 Mar 2020 23:13:02 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CFD4B20409 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 23 Mar 2020 23:13:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h7WliMMm" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CFD4B20409 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F1EA6E41B; Mon, 23 Mar 2020 23:12:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 729CD6E3F9 for <dri-devel@lists.freedesktop.org>; Mon, 23 Mar 2020 23:12:45 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id h15so7072592wrx.9 for <dri-devel@lists.freedesktop.org>; Mon, 23 Mar 2020 16:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nzveIRW2GmoBia4K/xiiAJEiKM6pSIRJP7YoEzWFeRE=; b=h7WliMMm4PC8gMhiCwxmdaDd0SHbwbhg+Y7xTbDp0c62/lcAIcPGUIzZxEuLgpYx/j xCKptRXPCV7zq2U6jbuBsOWc5egzd/uf8gFZDarPxsd9Ouz5RZi8TOIlPHPibCRiEgvB J504MQ7kQ0WIVdemcScU+nkmWCs/BdTUznnbq3yqG/anDrM6uf4LEkjWH0iQSmzs6mrU DPB3QMhqOAClzP5LNg6OwAzoJdHFHZOiEWdCnmITqtf08UKb0gzwl70FNGZJ0J7YloTk 9MgKeXkLkQw8Mv8MwAQXQyE4+rRH1lYaJgqKDW47RFiMJImMJB+TvClXYblRM8YIe4bL MxVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nzveIRW2GmoBia4K/xiiAJEiKM6pSIRJP7YoEzWFeRE=; b=L1gQ2QBZerhUq0eo63zvI3j/vzPN6+Cp8IarEZc/HJy4S8zyg50uqB1M/HAj8ikMz0 smMq7BvX/UIXFGi+/s49NL01dnalDXt2/2KXsXmpvH57lvou407RW6MA3vk1zLa8letP Orys52mkAoXvfYru2ZFlFkB2r90z7WUB9p5iUhOK1YM8MMt6vRI/B7ttlf/emyv1vG5K 1rzQ/LGa748MnAZSOmkxRJQvjIlJ1fdEZm9IcTLAsTHK1D7tF1NZAMgTznehvdzed6KP 3W3dAciXz1Y/uBG51RY6YZvNNrMFp9AhC3X7SrS8IHkVkuUn8CQo+D3HAZBJs4Y31MQw c/GQ== X-Gm-Message-State: ANhLgQ1TyXt6zLp16/PsmX2ATaO4syTyvGxtP8Vp6pT6OjnrdJu5lsqq Rkzu0GEOokOvFjfireQmW6Cf0BQJ X-Google-Smtp-Source: ADFU+vusBjx1BhrE8coOZ7R2W3UhBFIGnEfgQXWKb5HgwwlJRfyiBFRb+3tyFqvwLj1WwjZJpBjofw== X-Received: by 2002:a5d:4fce:: with SMTP id h14mr10764442wrw.243.1585005163933; Mon, 23 Mar 2020 16:12:43 -0700 (PDT) Received: from sroland-t5810.vmware.com (46-126-183-173.dynamic.hispeed.ch. [46.126.183.173]) by smtp.gmail.com with ESMTPSA id b82sm1495262wmb.46.2020.03.23.16.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Mar 2020 16:12:43 -0700 (PDT) From: "Roland Scheidegger (VMware)" <rscheidegger.oss@gmail.com> To: dri-devel@lists.freedesktop.org, airlied@redhat.com, daniel@ffwll.ch Subject: [PATCH v2 01/17] drm/vmwgfx: Also check for SVGA_CAP_DX before reading DX context support Date: Tue, 24 Mar 2020 00:12:22 +0100 Message-Id: <20200323231238.14839-2-rscheidegger.oss@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200323231238.14839-1-rscheidegger.oss@gmail.com> References: <20200323231238.14839-1-rscheidegger.oss@gmail.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 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> Cc: linux-graphics-maintainer@vmware.com 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> |
Series |
drm/vmwgfx add support for GL4
|
expand
|
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 4f58364421ce..f976dabe18de 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -883,7 +883,7 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset) } } - if (dev_priv->has_mob) { + if (dev_priv->has_mob && (dev_priv->capabilities & SVGA_CAP_DX)) { spin_lock(&dev_priv->cap_lock); vmw_write(dev_priv, SVGA_REG_DEV_CAP, SVGA3D_DEVCAP_DXCONTEXT); dev_priv->has_dx = !!vmw_read(dev_priv, SVGA_REG_DEV_CAP);