Unverified Commit 88bc003d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9071 [sync] PR-9014: drm/vc4: don't check if plane->state->fb == state->fb

parents dfdb6e44 363d8ebd
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1248,9 +1248,6 @@ static int vc4_prepare_fb(struct drm_plane *plane,

	drm_gem_fb_prepare_fb(plane, state);

	if (plane->state->fb == state->fb)
		return 0;

	ret = vc4_bo_inc_usecnt(bo);
	if (ret)
		return ret;
@@ -1263,7 +1260,7 @@ static void vc4_cleanup_fb(struct drm_plane *plane,
{
	struct vc4_bo *bo;

	if (plane->state->fb == state->fb || !state->fb)
	if (!state->fb)
		return;

	bo = to_vc4_bo(&drm_fb_cma_get_gem_obj(state->fb, 0)->base);