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