diff options
author | Eric Anholt <[email protected]> | 2017-10-19 15:17:41 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-20 15:53:55 -0700 |
commit | fb15168919613fd913addc5d2d90673e506ae0cc (patch) | |
tree | 3f0c7e43a5ec8d98029608ea60940f030a9929a2 /src/gallium/drivers/vc5/vc5_context.h | |
parent | f4ff8f74ee74b97b9b058f41e404eb41aa5e6359 (diff) |
broadcom/vc5: Move most of the shader state attribute record to the CSO.
This should reduce our draw-time overhead, and puts the code where it
should go long term.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_context.h')
-rw-r--r-- | src/gallium/drivers/vc5/vc5_context.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_context.h b/src/gallium/drivers/vc5/vc5_context.h index d4f9e1eac6b..08d96f36ecf 100644 --- a/src/gallium/drivers/vc5/vc5_context.h +++ b/src/gallium/drivers/vc5/vc5_context.h @@ -33,6 +33,7 @@ #include "util/slab.h" #include "xf86drm.h" #include "vc5_drm.h" +#include "vc5_screen.h" struct vc5_job; struct vc5_bo; @@ -159,8 +160,10 @@ struct vc5_vertexbuf_stateobj { }; struct vc5_vertex_stateobj { - struct pipe_vertex_element pipe[PIPE_MAX_ATTRIBS]; + struct pipe_vertex_element pipe[VC5_MAX_ATTRIBUTES]; unsigned num_elements; + + uint8_t attrs[12 * VC5_MAX_ATTRIBUTES]; }; struct vc5_streamout_stateobj { |