mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 12:33:37 +00:00
backend-drm: Remove unnecessary check in prepare_scanout_view
We already guarantee this from the caller. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
6b828c7b57
commit
1b34c5cd80
|
@ -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…
Reference in a new issue