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 f4e11bb commit dba8e9cCopy full SHA for dba8e9c
drivers/gpu/drm/vc4/vc4_plane.c
@@ -2224,9 +2224,6 @@ static int vc4_prepare_fb(struct drm_plane *plane,
2224
2225
drm_gem_plane_helper_prepare_fb(plane, state);
2226
2227
- if (plane->state->fb == state->fb)
2228
- return 0;
2229
-
2230
return vc4_bo_inc_usecnt(bo);
2231
}
2232
@@ -2235,7 +2232,7 @@ static void vc4_cleanup_fb(struct drm_plane *plane,
2235
{
2236
2233
struct vc4_bo *bo;
2237
2234
2238
- if (plane->state->fb == state->fb || !state->fb)
+ if (!state->fb)
2239
return;
2240
2241
bo = to_vc4_bo(&drm_fb_dma_get_gem_obj(state->fb, 0)->base);
0 commit comments