asahi: add agx_push macro

Thanks, Ella!

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
Alyssa Rosenzweig 2023-11-18 21:28:16 -04:00
parent 31b1bdb475
commit 09e46aa168
2 changed files with 5 additions and 0 deletions

View File

@ -185,6 +185,7 @@ ForEachMacros:
- foreach_submitted
- AGX_BATCH_FOREACH_BO_HANDLE
- agx_pack
- agx_push
- agx_usc_pack
- agx_ppp_push
- agx_foreach_block

View File

@ -13,6 +13,10 @@
#include "agx_pack.h"
#include "agx_ppp.h"
#define agx_push(ptr, T, cfg) \
for (unsigned _loop = 0; _loop < 1; ++_loop, ptr += AGX_##T##_LENGTH) \
agx_pack(ptr, T, cfg)
static inline enum agx_sampler_states
agx_translate_sampler_state_count(unsigned count, bool extended)
{