aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_kms.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
index c597d8936290..8a650413dea5 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
@@ -672,9 +672,9 @@ static int vmw_kms_new_framebuffer_surface(struct vmw_private *dev_priv,
672 672
673 if (unlikely(surface->mip_levels[0] != 1 || 673 if (unlikely(surface->mip_levels[0] != 1 ||
674 surface->num_sizes != 1 || 674 surface->num_sizes != 1 ||
675 surface->sizes[0].width < mode_cmd->width || 675 surface->base_size.width < mode_cmd->width ||
676 surface->sizes[0].height < mode_cmd->height || 676 surface->base_size.height < mode_cmd->height ||
677 surface->sizes[0].depth != 1)) { 677 surface->base_size.depth != 1)) {
678 DRM_ERROR("Incompatible surface dimensions " 678 DRM_ERROR("Incompatible surface dimensions "
679 "for requested mode.\n"); 679 "for requested mode.\n");
680 return -EINVAL; 680 return -EINVAL;