radeonsi/tmz: add safety assert when tmz is enabled
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Thu, 23 Jul 2020 07:41:40 +0000 (09:41 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 24 Sep 2020 14:51:16 +0000 (14:51 +0000)
commit0a59d2a3e9ed9965b303abd469065486ced5da77
treeff1b2fc5d416384d4330aa90d559316dfe962ddf
parent59b267dea4510d4b828711acb08979222be20955
radeonsi/tmz: add safety assert when tmz is enabled

This commit adds asserts verifying the following conditions when
using a secure job:
- fb textures are encrypted (both colors and depth/stencil buffers)
- all writeable bo are encrypted

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6049>
src/gallium/drivers/radeonsi/si_descriptors.c