mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
mediafoundation: Pass the frame stats buffers to the gallium driver
Reviewed-by: Pohsiang (John) Hsu <pohhsu@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35413>
This commit is contained in:
parent
a92a24d845
commit
f514fd80b6
2 changed files with 10 additions and 0 deletions
|
|
@ -403,6 +403,11 @@ CDX12EncHMFT::PrepareForEncodeHelper( LPDX12EncodeContext pDX12EncodeContext, bo
|
|||
}
|
||||
}
|
||||
|
||||
pPicInfo->gpu_stats_qp_map = pDX12EncodeContext->pPipeResourceQPMapStats;
|
||||
pPicInfo->gpu_stats_satd_map = pDX12EncodeContext->pPipeResourceSATDMapStats;
|
||||
pPicInfo->gpu_stats_rc_bitallocation_map = pDX12EncodeContext->pPipeResourceRCBitAllocMapStats;
|
||||
pPicInfo->gpu_stats_psnr = pDX12EncodeContext->pPipeResourcePSNRStats;
|
||||
|
||||
// Quality vs speed
|
||||
// PIPE: The quality level range is [1..m_uiMaxHWSupportedQualityVsSpeedLevel]
|
||||
// A lower value means higher quality (slower encoding speed), and a value of 1 represents the highest quality
|
||||
|
|
|
|||
|
|
@ -383,6 +383,11 @@ CDX12EncHMFT::PrepareForEncodeHelper( LPDX12EncodeContext pDX12EncodeContext, bo
|
|||
}
|
||||
}
|
||||
|
||||
pPicInfo->gpu_stats_qp_map = pDX12EncodeContext->pPipeResourceQPMapStats;
|
||||
pPicInfo->gpu_stats_satd_map = pDX12EncodeContext->pPipeResourceSATDMapStats;
|
||||
pPicInfo->gpu_stats_rc_bitallocation_map = pDX12EncodeContext->pPipeResourceRCBitAllocMapStats;
|
||||
pPicInfo->gpu_stats_psnr = pDX12EncodeContext->pPipeResourcePSNRStats;
|
||||
|
||||
// Quality vs speed
|
||||
// PIPE: The quality level range is [1..m_uiMaxHWSupportedQualityVsSpeedLevel]
|
||||
// A lower value means higher quality (slower encoding speed), and a value of 1 represents the highest quality
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue