video: driver: fix to allocate enc VPSS buffers in CB7

Allocate VPSS buffers in venus_ns_pixel region instead of
venus_ns to avoid bitstream corruption for downscale plus
rotation usecases.

Change-Id: Iab03f23d30c8476c90e958411944db058582a9fb
Signed-off-by: Akshata Sahukar <asahukar@codeaurora.org>
This commit is contained in:
Akshata Sahukar
2021-04-30 11:52:14 -07:00
parent 94ea0d5c5c
commit 3c72173fec

View File

@@ -842,6 +842,7 @@ u32 msm_vidc_get_buffer_region(struct msm_vidc_inst *inst,
region = MSM_VIDC_NON_SECURE_PIXEL;
break;
case MSM_VIDC_BUF_DPB:
case MSM_VIDC_BUF_VPSS:
region = MSM_VIDC_NON_SECURE_PIXEL;
break;
case MSM_VIDC_BUF_INPUT_META:
@@ -851,7 +852,6 @@ u32 msm_vidc_get_buffer_region(struct msm_vidc_inst *inst,
case MSM_VIDC_BUF_NON_COMV:
case MSM_VIDC_BUF_LINE:
case MSM_VIDC_BUF_PERSIST:
case MSM_VIDC_BUF_VPSS:
region = MSM_VIDC_NON_SECURE;
break;
default: