OSDN Git Service

radeon/vce: move destroy command before feedback command
authorLeo Liu <leo.liu@amd.com>
Thu, 7 Dec 2017 17:04:59 +0000 (12:04 -0500)
committerLeo Liu <leo.liu@amd.com>
Fri, 8 Dec 2017 17:56:48 +0000 (12:56 -0500)
commit6d74cb2570eb919c72e519e590d2464757465902
treed2dd15454eeaf9bc479c7012634ea45483b1111c
parent060eb314eb4e551cf870ad6a6e7e1363d4228efe
radeon/vce: move destroy command before feedback command

VCE processing IBs starts from session and task info at first level,
other commands processed subsequently. The task info for destroy is
embedded to destroy command, resulting that feedback command is not
properly procoessed. This is causing kernel spin VM fault messages on
Polaris and Vega10 card when running ends at encode application.

The fix is also verified on VCE physical mode card.

Signed-off-by: Leo Liu <leo.liu@amd.com>
Cc: mesa-stable@lists.freedesktop.org
Acked-by: Christian König <christian.koenig@amd.com>
src/gallium/drivers/radeon/radeon_vce.c