summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-02 02:36:16 +0200
committerMarek Olšák <[email protected]>2017-04-04 11:14:43 +0200
commit295f4f56cba4c20e51d91f0071eec80642643855 (patch)
treec88b418b67ddfd47265027e12ae5811cfc185751 /src
parente6428092f5e1f5e2dc59601487096fd0ebb3ba6c (diff)
gallium: decrease the size of pipe_vertex_element - 16 -> 8 bytes
Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/include/pipe/p_state.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h
index 79c76484513..45c213795c6 100644
--- a/src/gallium/include/pipe/p_state.h
+++ b/src/gallium/include/pipe/p_state.h
@@ -609,19 +609,19 @@ struct pipe_stream_output_target
struct pipe_vertex_element
{
/** Offset of this attribute, in bytes, from the start of the vertex */
- unsigned src_offset;
-
- /** Instance data rate divisor. 0 means this is per-vertex data,
- * n means per-instance data used for n consecutive instances (n > 0).
- */
- unsigned instance_divisor;
+ unsigned src_offset:16;
/** Which vertex_buffer (as given to pipe->set_vertex_buffer()) does
* this attribute live in?
*/
- unsigned vertex_buffer_index;
+ unsigned vertex_buffer_index:5;
- enum pipe_format src_format;
+ enum pipe_format src_format:11;
+
+ /** Instance data rate divisor. 0 means this is per-vertex data,
+ * n means per-instance data used for n consecutive instances (n > 0).
+ */
+ unsigned instance_divisor;
};