diff options
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_kms.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 019e2dbb46c8..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; |
@@ -1645,7 +1645,7 @@ bool vmw_kms_validate_mode_vram(struct vmw_private *dev_priv, | |||
1645 | uint32_t pitch, | 1645 | uint32_t pitch, |
1646 | uint32_t height) | 1646 | uint32_t height) |
1647 | { | 1647 | { |
1648 | return ((u64) pitch * (u64) height) < (u64) dev_priv->vram_size; | 1648 | return ((u64) pitch * (u64) height) < (u64) dev_priv->prim_bb_mem; |
1649 | } | 1649 | } |
1650 | 1650 | ||
1651 | 1651 | ||