freedreno/a6xx: convert draw packet to OUT_PKT()
authorRob Clark <robdclark@chromium.org>
Wed, 29 Apr 2020 17:01:23 +0000 (10:01 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Apr 2020 20:03:17 +0000 (20:03 +0000)
commit58fd1d7ecd38daf5bcbaa225175b43b8c722b0d0
tree68710c3f7a78536f0e8024b0502f8f2457d3cd2d
parentee293160d7d7341e0ec5f0aaf1ceb6950f785ed8
freedreno/a6xx: convert draw packet to OUT_PKT()

This is one of the hotter pkt7 packets, since it is guaranteed to happen
on every draw.  Switch to OUT_PKT() for less driver overhead in the draw
path.

Slight bit of cheating for using CP_DRAW_INDX_OFFSET_0 for the first
dword in all cases.  Possibly *gen_header.py* could be more clever
and use typedef's in the cases of bitsets like vgt_draw_initiator.
But this works out because it is always the first dword.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4813>
src/gallium/drivers/freedreno/a6xx/fd6_draw.c