backend-drm: Remove unnecessary check in prepare_scanout_view

We already guarantee this from the caller.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 3 years ago
parent 6b828c7b57
commit 1b34c5cd80
  1. 7
      libweston/backend-drm/state-propose.c

@ -307,6 +307,7 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state,
assert(!b->sprites_are_broken);
assert(b->atomic_modeset);
assert(mode == DRM_OUTPUT_PROPOSE_STATE_PLANES_ONLY);
assert(fb);
/* 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. */
@ -317,12 +318,6 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state,
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);
/* The only way we can already have a buffer in the scanout plane is

Loading…
Cancel
Save