Skip to content

Commit

Permalink
Merge branch 'vmwgfx-fixes-5.8' of git://people.freedesktop.org/~srol…
Browse files Browse the repository at this point in the history
…and/linux into drm-fixes

fix for black screens

Signed-off-by: Dave Airlie <airlied@redhat.com>
From: "Roland Scheidegger (VMware)" <rscheidegger.oss@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200715161843.21118-1-rscheidegger.oss@gmail.com
  • Loading branch information
Dave Airlie committed Jul 16, 2020
2 parents 11ba468 + 1f054fd commit 8257a0d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,10 +1069,6 @@ vmw_stdu_primary_plane_prepare_fb(struct drm_plane *plane,
if (new_content_type != SAME_AS_DISPLAY) {
struct vmw_surface_metadata metadata = {0};

metadata.base_size.width = hdisplay;
metadata.base_size.height = vdisplay;
metadata.base_size.depth = 1;

/*
* If content buffer is a buffer object, then we have to
* construct surface info
Expand Down Expand Up @@ -1104,6 +1100,10 @@ vmw_stdu_primary_plane_prepare_fb(struct drm_plane *plane,
metadata = new_vfbs->surface->metadata;
}

metadata.base_size.width = hdisplay;
metadata.base_size.height = vdisplay;
metadata.base_size.depth = 1;

if (vps->surf) {
struct drm_vmw_size cur_base_size =
vps->surf->metadata.base_size;
Expand Down

0 comments on commit 8257a0d

Please sign in to comment.