[Mesa-dev] [PATCH 08/13] radeonsi: pack struct si_vertex_elements better
Marek Olšák
maraeo at gmail.com
Sat Jun 10 16:39:46 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeonsi/si_state.h | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/src/gallium/drivers/radeonsi/si_state.h b/src/gallium/drivers/radeonsi/si_state.h
index 99c8ee6..77fa467 100644
--- a/src/gallium/drivers/radeonsi/si_state.h
+++ b/src/gallium/drivers/radeonsi/si_state.h
@@ -93,32 +93,33 @@ struct si_state_dsa {
};
struct si_stencil_ref {
struct r600_atom atom;
struct pipe_stencil_ref state;
struct si_dsa_stencil_ref_part dsa_part;
};
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 {
struct {
struct si_state_blend *blend;
struct si_state_rasterizer *rasterizer;
struct si_state_dsa *dsa;
struct si_pm4_state *poly_offset;
struct si_pm4_state *ls;
struct si_pm4_state *hs;
--
2.7.4
More information about the mesa-dev
mailing list