mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
radeonsi: report 0 block size for Polaris HEVC encoding
makes encoded videos resemble the input again :) Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7992 Fixes:c4482a3c1a("radeonsi/vcn: enable multi-slice encoding") Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20714> (cherry picked from commite8a60633da)
This commit is contained in:
parent
c34510badf
commit
c1d8827f5a
2 changed files with 4 additions and 3 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"description": "radeonsi: report 0 block size for Polaris HEVC encoding",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "c4482a3c1a973975eb27ac284a18bebca24f7876"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -644,8 +644,9 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
|
|||
return 0;
|
||||
|
||||
case PIPE_VIDEO_CAP_ENC_HEVC_BLOCK_SIZES:
|
||||
if (profile == PIPE_VIDEO_PROFILE_HEVC_MAIN ||
|
||||
profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10) {
|
||||
if (sscreen->info.family >= CHIP_RAVEN &&
|
||||
(profile == PIPE_VIDEO_PROFILE_HEVC_MAIN ||
|
||||
profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10)) {
|
||||
union pipe_h265_enc_cap_block_sizes pipe_block_sizes;
|
||||
pipe_block_sizes.value = 0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue