diff options
author | Zack Rusin <zackr@vmware.com> | 2020-11-19 19:37:07 -0500 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2021-01-14 12:16:47 -0500 |
commit | 625f8fb5bb5f5d25731c98d1f02e5023d41385f3 (patch) | |
tree | 5a8ef92c77d519ee9070edd54a9305ce3923ac54 /drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | |
parent | drm/vmwgfx: Cleanup the cmd/fifo split (diff) | |
download | linux-dev-625f8fb5bb5f5d25731c98d1f02e5023d41385f3.tar.xz linux-dev-625f8fb5bb5f5d25731c98d1f02e5023d41385f3.zip |
drm/vmwgfx: Fix display register usage for some older configs
We can't be setting the display_id register to an invalid value
because that makes our device reset the fb which causes nasty
flicker (due to destruction and creation of a new fb).
Also we can't be using the BITS_PER_PIXEL register if the
8BIT_EMULATION is not supported.
Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Martin Krastev <krastevm@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Link: https://patchwork.freedesktop.org/patch/414041/?series=85516&rev=2
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c index ac806ae78894..9a9508edbc9e 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c @@ -125,7 +125,6 @@ static int vmw_ldu_commit_list(struct vmw_private *dev_priv) vmw_write(dev_priv, SVGA_REG_DISPLAY_POSITION_Y, crtc->y); vmw_write(dev_priv, SVGA_REG_DISPLAY_WIDTH, crtc->mode.hdisplay); vmw_write(dev_priv, SVGA_REG_DISPLAY_HEIGHT, crtc->mode.vdisplay); - vmw_write(dev_priv, SVGA_REG_DISPLAY_ID, SVGA_ID_INVALID); i++; } |