|
@@ -1516,19 +1516,9 @@ EXPORT_SYMBOL(drm_atomic_add_affected_planes);
|
|
|
void drm_atomic_legacy_backoff(struct drm_atomic_state *state)
|
|
|
{
|
|
|
struct drm_device *dev = state->dev;
|
|
|
- unsigned crtc_mask = 0;
|
|
|
- struct drm_crtc *crtc;
|
|
|
int ret;
|
|
|
bool global = false;
|
|
|
|
|
|
- drm_for_each_crtc(crtc, dev) {
|
|
|
- if (crtc->acquire_ctx != state->acquire_ctx)
|
|
|
- continue;
|
|
|
-
|
|
|
- crtc_mask |= drm_crtc_mask(crtc);
|
|
|
- crtc->acquire_ctx = NULL;
|
|
|
- }
|
|
|
-
|
|
|
if (WARN_ON(dev->mode_config.acquire_ctx == state->acquire_ctx)) {
|
|
|
global = true;
|
|
|
|
|
@@ -1542,10 +1532,6 @@ retry:
|
|
|
if (ret)
|
|
|
goto retry;
|
|
|
|
|
|
- drm_for_each_crtc(crtc, dev)
|
|
|
- if (drm_crtc_mask(crtc) & crtc_mask)
|
|
|
- crtc->acquire_ctx = state->acquire_ctx;
|
|
|
-
|
|
|
if (global)
|
|
|
dev->mode_config.acquire_ctx = state->acquire_ctx;
|
|
|
}
|