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

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

Merge "msm: vidc: Invalidate video encoder output buffer"

parents af88c178 56592eca
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -5683,7 +5683,7 @@ int msm_comm_qbuf_cache_operations(struct msm_vidc_inst *inst,
		handle = msm_smem_get_handle(inst->mem_client, dma_buf);

		offset = b->m.planes[i].data_offset;
		size = b->m.planes[i].length;
		size = b->m.planes[i].length - offset;
		cache_ops = SMEM_CACHE_INVALIDATE;
		skip = false;

@@ -5752,7 +5752,7 @@ int msm_comm_dqbuf_cache_operations(struct msm_vidc_inst *inst,
		handle = msm_smem_get_handle(inst->mem_client, dma_buf);

		offset = b->m.planes[i].data_offset;
		size = b->m.planes[i].length;
		size = b->m.planes[i].length - offset;
		cache_ops = SMEM_CACHE_INVALIDATE;
		skip = false;

@@ -5772,8 +5772,15 @@ int msm_comm_dqbuf_cache_operations(struct msm_vidc_inst *inst,
				skip = true;
			} else if (b->type ==
					V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) {
				if (!i) /* bitstream */
					skip = true;
				if (!i) { /* bitstream */
					/*
					 * Include vp8e header bytes as well
					 * by making offset equal to zero
					 */
					offset = 0;
					size = b->m.planes[i].bytesused +
						b->m.planes[i].data_offset;
				}
			}
		}