asahi: reduce ppp alignment

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36633>
This commit is contained in:
Alyssa Rosenzweig
2025-08-07 08:47:41 -04:00
committed by Marge Bot
parent 7297a699f7
commit 1ef97241d7
4 changed files with 10 additions and 7 deletions
+1 -1
View File
@@ -411,7 +411,7 @@
</struct>
<!-- PPP state starts -->
<struct name="PPP Header" size="4">
<struct name="PPP Header" size="4" align="4">
<field name="Fragment control" size="1" start="0" type="bool"/>
<field name="Fragment control 2" size="1" start="1" type="bool"/>
<field name="Fragment front face" size="1" start="2" type="bool"/>
+1 -1
View File
@@ -810,7 +810,7 @@ hk_cs_init_graphics(struct hk_cmd_buffer *cmd, struct hk_cs *cs)
};
size_t size = agx_ppp_update_size(&present);
struct agx_ptr T = hk_pool_alloc(cmd, size, 64);
struct agx_ptr T = hk_pool_alloc(cmd, size, AGX_PPP_HEADER_ALIGN);
if (!T.cpu)
return;
+2 -2
View File
@@ -2136,7 +2136,7 @@ hk_flush_vp_state(struct hk_cmd_buffer *cmd, struct hk_cs *cs, uint8_t **out)
};
size_t size = agx_ppp_update_size(&present);
struct agx_ptr T = hk_pool_alloc(cmd, size, 64);
struct agx_ptr T = hk_pool_alloc(cmd, size, AGX_PPP_HEADER_ALIGN);
if (!T.cpu)
return;
@@ -2386,7 +2386,7 @@ hk_flush_ppp_state(struct hk_cmd_buffer *cmd, struct hk_cs *cs, uint8_t **out)
/* Otherwise, allocate enough space for the update and push it. */
assert(size > AGX_PPP_HEADER_LENGTH);
struct agx_ptr T = hk_pool_alloc(cmd, size, 64);
struct agx_ptr T = hk_pool_alloc(cmd, size, AGX_PPP_HEADER_ALIGN);
if (!T.cpu)
return;