mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 18:58:10 +02:00
radeon/vcn: set min value for num_temporal_layers
Fixes: 51935d59
In the case where num_temporal_layers is not set (0), set it using the
minimum value 1, otherwise the rate control settings will be missing.
Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12463>
This commit is contained in:
parent
59f2c85845
commit
4081516b3e
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ static void radeon_vcn_enc_get_param(struct radeon_encoder *enc, struct pipe_pic
|
|||
enc->enc_pic.crop_top = 0;
|
||||
enc->enc_pic.crop_bottom = (align(enc->base.height, 16) - enc->base.height) / 2;
|
||||
}
|
||||
enc->enc_pic.num_temporal_layers = pic->num_temporal_layers;
|
||||
enc->enc_pic.num_temporal_layers = pic->num_temporal_layers ? pic->num_temporal_layers : 1;
|
||||
enc->enc_pic.temporal_id = 0;
|
||||
for (int i = 0; i < enc->enc_pic.num_temporal_layers; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue