OSDN Git Service

radeon/vce: move feedback command inside of destroy function
authorLeo Liu <leo.liu@amd.com>
Mon, 19 Mar 2018 15:16:46 +0000 (11:16 -0400)
committerLeo Liu <leo.liu@amd.com>
Wed, 21 Mar 2018 15:24:35 +0000 (11:24 -0400)
commitc4de2f0880cfa49bd6fd3138564ee64ef4e637a1
tree0991ac44584221f9db4185b225b841cee9bdba3f
parent1346a36162a87c66a92f77306d251abb2a260fa2
radeon/vce: move feedback command inside of destroy function

On the CI family, firmware requires the destory command have to be the
last command in the IB, moving feedback command after destroy is causing
issues on CI cards, so we have to keep the previous logic that moves
destroy back to the last command.

But as the original issue fixed previously, with the newer family like Vega10,
feedback command have to be included inside of the task info command along
with destroy command.

Fixes: 6d74cb25("radeon/vce: move destroy command before feedback command")

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