freedreno/a6xx: add OUT_PKT()
authorRob Clark <robdclark@chromium.org>
Wed, 29 Apr 2020 16:58:38 +0000 (09:58 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 20:03:17 +0000 (20:03 +0000)
commitee293160d7d7341e0ec5f0aaf1ceb6950f785ed8
treefdaac7476815b5ad4cfd98ccb8d963f571c6af51
parenta142bb899291ae68d00f552959cf6ee1cbb9e6c2
freedreno/a6xx: add OUT_PKT()

Similar to OUT_REG(), this has the benefits of:

1. No more messing up pkt size
2. Detects errors of mixing up the order of dwords in the packet
3. Optimizes to more efficient code

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4813>
src/freedreno/registers/adreno_pm4.xml
src/freedreno/registers/meson.build
src/gallium/drivers/freedreno/a6xx/fd6_pack.h