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

Commit 7dc9db11 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Update offset and size to optimize cache operations"

parents 438948a5 be121cc9
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -6331,8 +6331,8 @@ int msm_comm_qbuf_cache_operations(struct msm_vidc_inst *inst,
					V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
					V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
				if (!i) { /* yuv */
				if (!i) { /* yuv */
					skip = false;
					skip = false;
					offset = 0;
					offset = vb->planes[i].data_offset;
					size = vb->planes[i].length;
					size = vb->planes[i].bytesused;
					cache_op = SMEM_CACHE_INVALIDATE;
					cache_op = SMEM_CACHE_INVALIDATE;
				}
				}
			}
			}
@@ -6348,8 +6348,8 @@ int msm_comm_qbuf_cache_operations(struct msm_vidc_inst *inst,
					V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
					V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
				if (!i) { /* bitstream */
				if (!i) { /* bitstream */
					skip = false;
					skip = false;
					offset = 0;
					offset = vb->planes[i].data_offset;
					size = vb->planes[i].length;
					size = vb->planes[i].bytesused;
					cache_op = SMEM_CACHE_INVALIDATE;
					cache_op = SMEM_CACHE_INVALIDATE;
				}
				}
			}
			}