Rev 6084 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6084 | Rev 6660 | ||
---|---|---|---|
Line 148... | Line 148... | ||
148 | DRM_DEBUG_ATOMIC("Clearing atomic state %p\n", state); |
148 | DRM_DEBUG_ATOMIC("Clearing atomic state %p\n", state); |
Line 149... | Line 149... | ||
149 | 149 | ||
150 | for (i = 0; i < state->num_connector; i++) { |
150 | for (i = 0; i < state->num_connector; i++) { |
Line 151... | Line 151... | ||
151 | struct drm_connector *connector = state->connectors[i]; |
151 | struct drm_connector *connector = state->connectors[i]; |
152 | 152 | ||
Line 153... | Line 153... | ||
153 | if (!connector) |
153 | if (!connector || !connector->funcs) |
154 | continue; |
154 | continue; |
155 | 155 | ||
Line 365... | Line 365... | ||
365 | 365 | ||
366 | if (state->mode_blob) |
366 | if (state->mode_blob) |
367 | drm_property_unreference_blob(state->mode_blob); |
367 | drm_property_unreference_blob(state->mode_blob); |
Line -... | Line 368... | ||
- | 368 | state->mode_blob = NULL; |
|
- | 369 | ||
368 | state->mode_blob = NULL; |
370 | memset(&state->mode, 0, sizeof(state->mode)); |
369 | 371 | ||
370 | if (blob) { |
372 | if (blob) { |
371 | if (blob->length != sizeof(struct drm_mode_modeinfo) || |
373 | if (blob->length != sizeof(struct drm_mode_modeinfo) || |
372 | drm_mode_convert_umode(&state->mode, |
374 | drm_mode_convert_umode(&state->mode, |
Line 377... | Line 379... | ||
377 | state->mode_blob = drm_property_reference_blob(blob); |
379 | state->mode_blob = drm_property_reference_blob(blob); |
378 | state->enable = true; |
380 | state->enable = true; |
379 | DRM_DEBUG_ATOMIC("Set [MODE:%s] for CRTC state %p\n", |
381 | DRM_DEBUG_ATOMIC("Set [MODE:%s] for CRTC state %p\n", |
380 | state->mode.name, state); |
382 | state->mode.name, state); |
381 | } else { |
383 | } else { |
382 | memset(&state->mode, 0, sizeof(state->mode)); |
- | |
383 | state->enable = false; |
384 | state->enable = false; |
384 | DRM_DEBUG_ATOMIC("Set [NOMODE] for CRTC state %p\n", |
385 | DRM_DEBUG_ATOMIC("Set [NOMODE] for CRTC state %p\n", |
385 | state); |
386 | state); |
386 | } |
387 | } |