mirror of https://gitlab.freedesktop.org/mesa/mesa
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:
parent
31b1bdb475
commit
09e46aa168
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue