radv/amdgpu: Add a few assertions during submit.
authorTimur Kristóf <timur.kristof@gmail.com>
Thu, 6 Apr 2023 14:31:35 +0000 (16:31 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Apr 2023 17:05:02 +0000 (17:05 +0000)
commitccb4b78840475ade02113db51d154f4082accea1
tree9ccdb8c72c5a83075d19c922e46cdb25e076ce00
parente5201987b1bac5caad71a857b35689f4e7fa117b
radv/amdgpu: Add a few assertions during submit.

These are useful when debugging the submission code.

- Ensure correct IB alignment
- Ensure we don't submit empty IBs

Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22354>
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c