radeon/vcn: allocate non-tmz context buffer for VCN2+
authorBoyuan Zhang <boyuan.zhang@amd.com>
Wed, 16 Jun 2021 15:39:16 +0000 (11:39 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 18 Jun 2021 14:35:44 +0000 (14:35 +0000)
commite1af22d9dd7777739fbb5f1198a1dd5748d85964
treef2fc6e63f5523db45e341c28d49641351a7dfc22
parent796358e2f56b8444f2d422ea14639945be7c709e
radeon/vcn: allocate non-tmz context buffer for VCN2+

By design, context buffer should be allocated as TMZ buffer for secure playback
for VCN 1 only. For VCN 2&2+, context buffer should be moved out of TMZ.

Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11388>
src/gallium/drivers/radeon/radeon_vcn_dec.c
src/gallium/drivers/radeon/radeon_vcn_dec.h