fix: continue layering when fbs available

Trying to layer onto planes should be continued when fb ids are set and
not the other way around. Here the assert also failed when only having
one layer.
This commit is contained in:
Roman Gilg 2020-02-26 00:47:09 +01:00
parent be1ff3d903
commit d17f234738

View file

@ -702,7 +702,7 @@ bool drm_can_avoid_composite( struct drm_t *drm, struct Composite_t *pComposite,
liftoff_layer_set_property( drm->lo_layers[ i ], "rotation", DRM_MODE_ROTATE_270);
}
if ( pPipeline->layerBindings[ i ].fbid != 0 )
if ( pPipeline->layerBindings[ i ].fbid == 0 )
{
return false;
}