mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 04:50:11 +01:00
libagx: static assert some sizes
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27616>
This commit is contained in:
parent
aaa609f030
commit
c9f55166dc
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,7 @@ struct agx_geometry_state {
|
|||
GLOBAL(uchar) heap;
|
||||
uint32_t heap_bottom, heap_top, heap_size, padding;
|
||||
} PACKED;
|
||||
AGX_STATIC_ASSERT(sizeof(struct agx_geometry_state) == 6 * 4);
|
||||
|
||||
struct agx_ia_state {
|
||||
/* Heap to allocate from across draws */
|
||||
|
|
@ -86,6 +87,7 @@ struct agx_ia_state {
|
|||
/* The index size (1, 2, 4) or 0 if drawing without an index buffer. */
|
||||
uint32_t index_size_B;
|
||||
} PACKED;
|
||||
AGX_STATIC_ASSERT(sizeof(struct agx_ia_state) == 18 * 4);
|
||||
|
||||
struct agx_geometry_params {
|
||||
/* Persistent (cross-draw) geometry state */
|
||||
|
|
@ -187,6 +189,7 @@ struct agx_tess_params {
|
|||
/* Number of input patches per instance of the VS/TCS */
|
||||
uint patches_per_instance;
|
||||
} PACKED;
|
||||
AGX_STATIC_ASSERT(sizeof(struct agx_tess_params) == 22 * 4);
|
||||
|
||||
/* TCS shared memory layout:
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue