radeonsi/vcn: Don't hang GPU when using DCC surface as encoder input
authorDavid Rosca <nowrep@gmail.com>
Sat, 16 Sep 2023 14:15:50 +0000 (16:15 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 18 Sep 2023 23:08:51 +0000 (23:08 +0000)
commit9197dba8bc250961a7ab2bf82808a6bb31fdbc28
treea4b40e6e86375397bdcbcb9edacd41762bccc747
parent3166b14bd895f1831459af43b202ae479e19a627
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>
src/gallium/drivers/radeonsi/radeon_vcn_enc_1_2.c
src/gallium/drivers/radeonsi/radeon_vcn_enc_4_0.c