|
|
@ -307,6 +307,7 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state, |
|
|
|
assert(!b->sprites_are_broken); |
|
|
|
assert(!b->sprites_are_broken); |
|
|
|
assert(b->atomic_modeset); |
|
|
|
assert(b->atomic_modeset); |
|
|
|
assert(mode == DRM_OUTPUT_PROPOSE_STATE_PLANES_ONLY); |
|
|
|
assert(mode == DRM_OUTPUT_PROPOSE_STATE_PLANES_ONLY); |
|
|
|
|
|
|
|
assert(fb); |
|
|
|
|
|
|
|
|
|
|
|
/* If the surface buffer has an in-fence fd, but the plane doesn't
|
|
|
|
/* If the surface buffer has an in-fence fd, but the plane doesn't
|
|
|
|
* support fences, we can't place the buffer on this plane. */ |
|
|
|
* support fences, we can't place the buffer on this plane. */ |
|
|
@ -317,12 +318,6 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state, |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (!fb) { |
|
|
|
|
|
|
|
drm_debug(b, "\t\t\t\t[%s] not placing view %p on %s: " |
|
|
|
|
|
|
|
" couldn't get fb\n", p_name, ev, p_name); |
|
|
|
|
|
|
|
return NULL; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
state = drm_output_state_get_plane(output_state, scanout_plane); |
|
|
|
state = drm_output_state_get_plane(output_state, scanout_plane); |
|
|
|
|
|
|
|
|
|
|
|
/* The only way we can already have a buffer in the scanout plane is
|
|
|
|
/* The only way we can already have a buffer in the scanout plane is
|
|
|
|