File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1069,10 +1069,6 @@ vmw_stdu_primary_plane_prepare_fb(struct drm_plane *plane,
1069
1069
if (new_content_type != SAME_AS_DISPLAY ) {
1070
1070
struct vmw_surface_metadata metadata = {0 };
1071
1071
1072
- metadata .base_size .width = hdisplay ;
1073
- metadata .base_size .height = vdisplay ;
1074
- metadata .base_size .depth = 1 ;
1075
-
1076
1072
/*
1077
1073
* If content buffer is a buffer object, then we have to
1078
1074
* construct surface info
@@ -1104,6 +1100,10 @@ vmw_stdu_primary_plane_prepare_fb(struct drm_plane *plane,
1104
1100
metadata = new_vfbs -> surface -> metadata ;
1105
1101
}
1106
1102
1103
+ metadata .base_size .width = hdisplay ;
1104
+ metadata .base_size .height = vdisplay ;
1105
+ metadata .base_size .depth = 1 ;
1106
+
1107
1107
if (vps -> surf ) {
1108
1108
struct drm_vmw_size cur_base_size =
1109
1109
vps -> surf -> metadata .base_size ;
You can’t perform that action at this time.
0 commit comments