We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a83a772 commit 48bfb4bCopy full SHA for 48bfb4b
drivers/gpu/drm/vc4/vc4_plane.c
@@ -1415,9 +1415,6 @@ static int vc4_prepare_fb(struct drm_plane *plane,
1415
1416
drm_gem_plane_helper_prepare_fb(plane, state);
1417
1418
- if (plane->state->fb == state->fb)
1419
- return 0;
1420
-
1421
return vc4_bo_inc_usecnt(bo);
1422
}
1423
@@ -1426,7 +1423,7 @@ static void vc4_cleanup_fb(struct drm_plane *plane,
1426
{
1427
1424
struct vc4_bo *bo;
1428
1425
1429
- if (plane->state->fb == state->fb || !state->fb)
+ if (!state->fb)
1430
return;
1431
1432
bo = to_vc4_bo(&drm_fb_dma_get_gem_obj(state->fb, 0)->base);
0 commit comments