summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-06-09 19:32:49 +0200
committerMarek Olšák <[email protected]>2017-06-12 18:24:37 +0200
commit217114dd73647d9c294b0b32c29e22a298b75db4 (patch)
tree4a42ebc8a544e48718b1e6729a89b4ac16dca836 /src/gallium/drivers
parente80a056ff93e9a2714a4a7e8a6ccc0a0d49b41a1 (diff)
radeonsi: pack struct si_vertex_elements better
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_state.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index 99c8ee65b9f..77fa467c138 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -100,18 +100,19 @@ struct si_stencil_ref {
struct si_vertex_elements
{
- unsigned count;
- unsigned first_vb_use_mask;
- /* Vertex buffer descriptor list size aligned for optimal prefetch. */
- unsigned desc_list_byte_size;
-
- uint8_t fix_fetch[SI_MAX_ATTRIBS];
+ uint32_t instance_divisors[SI_MAX_ATTRIBS];
uint32_t rsrc_word3[SI_MAX_ATTRIBS];
- uint32_t format_size[SI_MAX_ATTRIBS];
- uint8_t vertex_buffer_index[SI_MAX_ATTRIBS];
uint16_t src_offset[SI_MAX_ATTRIBS];
- unsigned instance_divisors[SI_MAX_ATTRIBS];
+ uint8_t fix_fetch[SI_MAX_ATTRIBS];
+ uint8_t format_size[SI_MAX_ATTRIBS];
+ uint8_t vertex_buffer_index[SI_MAX_ATTRIBS];
+
+ uint8_t count;
bool uses_instance_divisors;
+
+ uint16_t first_vb_use_mask;
+ /* Vertex buffer descriptor list size aligned for optimal prefetch. */
+ uint16_t desc_list_byte_size;
};
union si_state {