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 fc2dbbd commit 840db36Copy full SHA for 840db36
drivers/gpu/drm/vc4/vc4_plane.c
@@ -2248,9 +2248,6 @@ static int vc4_prepare_fb(struct drm_plane *plane,
2248
2249
drm_gem_plane_helper_prepare_fb(plane, state);
2250
2251
- if (plane->state->fb == state->fb)
2252
- return 0;
2253
-
2254
return vc4_bo_inc_usecnt(bo);
2255
}
2256
@@ -2259,7 +2256,7 @@ static void vc4_cleanup_fb(struct drm_plane *plane,
2259
{
2260
2257
struct vc4_bo *bo;
2261
2258
2262
- if (plane->state->fb == state->fb || !state->fb)
+ if (!state->fb)
2263
return;
2264
2265
bo = to_vc4_bo(&drm_fb_dma_get_gem_obj(state->fb, 0)->base);
0 commit comments