mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
gallium: decrease the size of pipe_vertex_element - 16 -> 8 bytes
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
e6428092f5
commit
295f4f56cb
1 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
unsigned src_offset:16;
|
||||
|
||||
/** Which vertex_buffer (as given to pipe->set_vertex_buffer()) does
|
||||
* this attribute live in?
|
||||
*/
|
||||
unsigned vertex_buffer_index:5;
|
||||
|
||||
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;
|
||||
|
||||
/** Which vertex_buffer (as given to pipe->set_vertex_buffer()) does
|
||||
* this attribute live in?
|
||||
*/
|
||||
unsigned vertex_buffer_index;
|
||||
|
||||
enum pipe_format src_format;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue