mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
radeonsi/vcn: Don't hang GPU when using DCC surface as encoder input
Using DCC surface as encoder input will result in corrupted image in the video, but early returning here will instead hang GPU. Replace return with assert. Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25259>
This commit is contained in:
parent
3166b14bd8
commit
9197dba8bc
2 changed files with 2 additions and 2 deletions
|
|
@ -1222,7 +1222,7 @@ static void radeon_enc_encode_params(struct radeon_encoder *enc)
|
|||
|
||||
if (enc->luma->meta_offset) {
|
||||
RVID_ERR("DCC surfaces not supported.\n");
|
||||
return;
|
||||
assert(false);
|
||||
}
|
||||
|
||||
enc->enc_pic.enc_params.allowed_max_bitstream_size = enc->bs_size;
|
||||
|
|
|
|||
|
|
@ -887,7 +887,7 @@ static void radeon_enc_av1_encode_params(struct radeon_encoder *enc)
|
|||
|
||||
if (enc->luma->meta_offset) {
|
||||
RVID_ERR("DCC surfaces not supported.\n");
|
||||
return;
|
||||
assert(false);
|
||||
}
|
||||
|
||||
enc->enc_pic.enc_params.allowed_max_bitstream_size = enc->bs_size;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue