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 f37515d commit 5343f72Copy full SHA for 5343f72
drivers/gpu/drm/vc4/vc4_plane.c
@@ -1505,9 +1505,6 @@ static int vc4_prepare_fb(struct drm_plane *plane,
1505
1506
drm_gem_plane_helper_prepare_fb(plane, state);
1507
1508
- if (plane->state->fb == state->fb)
1509
- return 0;
1510
-
1511
return vc4_bo_inc_usecnt(bo);
1512
}
1513
@@ -1516,7 +1513,7 @@ static void vc4_cleanup_fb(struct drm_plane *plane,
1516
{
1517
1514
struct vc4_bo *bo;
1518
1515
1519
- if (plane->state->fb == state->fb || !state->fb)
+ if (!state->fb)
1520
return;
1521
1522
bo = to_vc4_bo(&drm_fb_dma_get_gem_obj(state->fb, 0)->base);
0 commit comments