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:
David Rosca 2023-09-16 16:15:50 +02:00 committed by Marge Bot
parent 3166b14bd8
commit 9197dba8bc
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;