diff options
author | Brian Paul <[email protected]> | 2014-04-17 08:45:25 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2014-04-17 11:29:32 -0700 |
commit | 52faafa17424a3842f150019a9d76ce626019d9f (patch) | |
tree | 64d683126f97628cd0bdc13107f3aa677f4ac1a8 /src/gallium/drivers/svga/svga_context.h | |
parent | 0f5add19594e8ece38ff899cf8a100d855b6ee5a (diff) |
svga: move translated vertex declaration types into svga_velems_state
Now only translate the formats once in svga_create_vertex_elements_state().
And rename the array and use the proper SVGA3dDeclType type.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index 0daab0b3229..79cecbf3221 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -200,6 +200,7 @@ struct svga_sampler_state { struct svga_velems_state { unsigned count; struct pipe_vertex_element velem[PIPE_MAX_ATTRIBS]; + SVGA3dDeclType decl_type[PIPE_MAX_ATTRIBS]; /**< vertex attrib formats */ }; /* Use to calculate differences between state emitted to hardware and @@ -304,8 +305,6 @@ struct svga_hw_draw_state */ struct svga_sw_state { - unsigned ve_format[PIPE_MAX_ATTRIBS]; /* NEW_VELEMENT */ - /* which parts we need */ boolean need_swvfetch; boolean need_pipeline; |