]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/vmwgfx: Disable command buffers on svga3 without gbobjects
authorZack Rusin <zackr@vmware.com>
Fri, 18 Mar 2022 17:43:31 +0000 (13:43 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Aug 2022 07:22:18 +0000 (09:22 +0200)
commit54d5168417aecbc0834f56702671143712043ce6
treedc48d61a027e66c509175df2cf5f36f4b6344afc
parent1f8a7ea95dda615b3c9f2c184d1d03aa824b2060
drm/vmwgfx: Disable command buffers on svga3 without gbobjects

BugLink: https://bugs.launchpad.net/bugs/1980278
commit 21d1d192890ced87f2f04f8f4dea92406e0b162a upstream.

With very limited vram on svga3 it's difficult to handle all the surface
migrations. Without gbobjects, i.e. the ability to store surfaces in
guest mobs, there's no reason to support intermediate svga2 features,
especially because we can fall back to fb traces and svga3 will never
support those in-between features.

On svga3 we wither want to use fb traces or screen targets
(i.e. gbobjects), nothing in between. This fixes presentation on a lot
of fusion/esxi tech previews where the exposed svga3 caps haven't been
finalized yet.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Fixes: 2cd80dbd3551 ("drm/vmwgfx: Add basic support for SVGA3")
Cc: <stable@vger.kernel.org> # v5.14+
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220318174332.440068-5-zack@kde.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c