From 840c756952419510566248734138c68b5b6bc76f Mon Sep 17 00:00:00 2001 From: "sys_gavin.zhang" Date: Thu, 15 Nov 2018 06:59:45 +0800 Subject: [PATCH] [Encode] Fixed issue of 16x downscaling Because the input is 4x downscaling surface, current downscaling stage should be 4x Change-Id: Ic8f1bb4b7776d6f0c2ed1056d42618eaf73975f7 --- .../agnostic/gen11/codec/hal/codechal_encode_csc_ds_g11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/media_driver/agnostic/gen11/codec/hal/codechal_encode_csc_ds_g11.cpp b/media_driver/agnostic/gen11/codec/hal/codechal_encode_csc_ds_g11.cpp index 78c1adb62be..bbb1896bfcb 100644 --- a/media_driver/agnostic/gen11/codec/hal/codechal_encode_csc_ds_g11.cpp +++ b/media_driver/agnostic/gen11/codec/hal/codechal_encode_csc_ds_g11.cpp @@ -245,7 +245,7 @@ MOS_STATUS CodechalEncodeCscDsG11::SetKernelParamsCsc(KernelParams* params) { m_currRefList->b16xScalingUsed = true; m_lastTaskInPhase = params->bLastTaskInPhase16xDS; - m_curbeParams.downscaleStage = dsStage16x; + m_curbeParams.downscaleStage = dsStage4x; inputSurface = m_encoder->m_trackedBuf->Get4xDsSurface(CODEC_CURR_TRACKED_BUFFER); output4xDsSurface = m_encoder->m_trackedBuf->Get16xDsSurface(CODEC_CURR_TRACKED_BUFFER); output2xDsSurface = nullptr;