Skip to content

Commit 52500de

Browse files
committed
drm/vmwgfx: Don't look at state->allow_modeset
That's purely for the uapi layer to implement the ALLOW_MODESET flag. Drivers should instead look at the state, e.g. through drm_atomic_crtc_needs_modeset(), which vmwgfx already does. Also remove the confusing comment, since checking allow_modeset is at best a micro optimization. v2: Rebase Reviewed-by: Deepak Rawat <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Cc: VMware Graphics <[email protected]> Cc: Thomas Hellstrom <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 8735f16 commit 52500de

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

drivers/gpu/drm/vmwgfx/vmwgfx_kms.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1704,14 +1704,6 @@ vmw_kms_atomic_check_modeset(struct drm_device *dev,
17041704
if (ret)
17051705
return ret;
17061706

1707-
if (!state->allow_modeset)
1708-
return ret;
1709-
1710-
/*
1711-
* Legacy path do not set allow_modeset properly like
1712-
* @drm_atomic_helper_update_plane, This will result in unnecessary call
1713-
* to vmw_kms_check_topology. So extra set of check.
1714-
*/
17151707
for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
17161708
if (drm_atomic_crtc_needs_modeset(crtc_state))
17171709
need_modeset = true;

0 commit comments

Comments
 (0)