Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9bda357a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: sde: Remove output fence object after user request completed"

parents 10bb4a94 70605678
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -480,7 +480,7 @@ static void sde_rotator_stop_streaming(struct vb2_queue *q)
			struct sde_rotator_vbinfo *vbinfo =
					&ctx->vbinfo_cap[i];

			if (vbinfo->fence && vbinfo->fd < 0) {
			if (vbinfo->fence) {
				/* fence is not used */
				SDEDEV_DBG(rot_dev->dev,
						"put fence s:%d t:%d i:%d\n",
@@ -1457,7 +1457,7 @@ static int sde_rotator_dqbuf(struct file *file,
			&& (buf->index < ctx->nbuf_cap)) {
		int idx = buf->index;

		if (ctx->vbinfo_cap[idx].fence && ctx->vbinfo_cap[idx].fd < 0) {
		if (ctx->vbinfo_cap[idx].fence) {
			/* fence is not used */
			SDEDEV_DBG(ctx->rot_dev->dev, "put fence s:%d i:%d\n",
					ctx->session_id, idx);
@@ -1854,6 +1854,7 @@ static long sde_rotator_private_ioctl(struct file *file, void *fh,
					ctx->session_id);
				return vbinfo->fd;
			}
			vbinfo->fence = NULL;
		}
		fence->fd = vbinfo->fd;