Commit bdc362f6 authored by Maarten Lankhorst's avatar Maarten Lankhorst

drm/vmwgfx: Make check_modeset() use the new atomic iterator macros.

I don't think the checking of resources in this function is very
atomic-like, but it should definitely not use a macro that's about
to be removed.
Signed-off-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
Cc: Sinclair Yeh <syeh@vmware.com>
Cc: Thomas Hellstrom <thellstrom@vmware.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170712081344.25495-6-maarten.lankhorst@linux.intel.comReviewed-by: default avatarSinclair Yeh <syeh@vmware.com>
Reviewed-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
[mlankhorst: Make function static (danvet)]
parent 2d705c0b
...@@ -1527,7 +1527,7 @@ static struct drm_framebuffer *vmw_kms_fb_create(struct drm_device *dev, ...@@ -1527,7 +1527,7 @@ static struct drm_framebuffer *vmw_kms_fb_create(struct drm_device *dev,
* RETURNS * RETURNS
* Zero for success or -errno * Zero for success or -errno
*/ */
int static int
vmw_kms_atomic_check_modeset(struct drm_device *dev, vmw_kms_atomic_check_modeset(struct drm_device *dev,
struct drm_atomic_state *state) struct drm_atomic_state *state)
{ {
...@@ -1536,8 +1536,7 @@ vmw_kms_atomic_check_modeset(struct drm_device *dev, ...@@ -1536,8 +1536,7 @@ vmw_kms_atomic_check_modeset(struct drm_device *dev,
struct vmw_private *dev_priv = vmw_priv(dev); struct vmw_private *dev_priv = vmw_priv(dev);
int i; int i;
for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
for_each_crtc_in_state(state, crtc, crtc_state, i) {
unsigned long requested_bb_mem = 0; unsigned long requested_bb_mem = 0;
if (dev_priv->active_display_unit == vmw_du_screen_target) { if (dev_priv->active_display_unit == vmw_du_screen_target) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment