mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-13 11:38:22 +02:00
asahi: add agx_push_packed
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28483>
This commit is contained in:
parent
499d091208
commit
9c2df9e814
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,11 @@
|
|||
for (unsigned _loop = 0; _loop < 1; ++_loop, ptr += AGX_##T##_LENGTH) \
|
||||
agx_pack(ptr, T, cfg)
|
||||
|
||||
#define agx_push_packed(ptr, src, T) \
|
||||
STATIC_ASSERT(sizeof(src) == AGX_##T##_LENGTH); \
|
||||
memcpy(ptr, &src, sizeof(src)); \
|
||||
ptr += sizeof(src);
|
||||
|
||||
static inline enum agx_sampler_states
|
||||
agx_translate_sampler_state_count(unsigned count, bool extended)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue