radeonsi: pack struct si_vertex_elements better
authorMarek Olšák <marek.olsak@amd.com>
Fri, 9 Jun 2017 17:32:49 +0000 (19:32 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 12 Jun 2017 16:24:37 +0000 (18:24 +0200)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state.h

index 99c8ee65b9f56e52e92d4260dcf1342b3803c0b0..77fa467c13833c64836dc6b6a6afb6cda87d08f2 100644 (file)
@@ -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 {