Skip to contentSkip to conversation

drm/vmwgfx: Don't look at state->allow_modeset

PATCH RESEND New Daniel Vetter 1 participant 1 message Dec 10, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 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

---
This is a resend of the vmwgfx patches I've sent out a while ago. All the other issues I've spotted have been addressed correctly (thanks for doing that). This one here seems left over.

Thanks, Daniel

---
 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 8 --------
 1 file changed, 8 deletions(-)
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +0 -8
index b351fb5214d3..fdaa96dfd3b3 100644
@@ -1706,14 +1706,6 @@ vmw_kms_atomic_check_modeset(struct drm_device *dev,
 	if (ret)
 		return ret;
 
-	if (!state->allow_modeset)
-		return ret;
-
-	/*
-	 * Legacy path do not set allow_modeset properly like
-	 * @drm_atomic_helper_update_plane, This will result in unnecessary call
-	 * to vmw_kms_check_topology. So extra set of check.
-	 */
 	for_each_new_crtc_in_state(state, crtc, crtc_state, i) {
 		if (drm_atomic_crtc_needs_modeset(crtc_state))
 			need_modeset = true;
Signature · 6 lines
2.20.0.rc1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel