diff options
author | Mathias Fröhlich <[email protected]> | 2018-03-25 19:16:54 +0200 |
---|---|---|
committer | Mathias Fröhlich <[email protected]> | 2018-03-31 06:32:12 +0200 |
commit | 4db9d83a2dd5611776577bacdbdbf483b6bea937 (patch) | |
tree | 15550207bf5e29c43ff5ac92cbb9b3313c5fa36a /src/mesa/drivers/dri/i965/brw_context.h | |
parent | fca1550550793f0a1156ad795445e2242c1fea9b (diff) |
i965: Push down the gl_vertex_array inputs into i965.
Let the i965 backend have its own gl_vertex_array array and basically
reimplement the way _vbo_draw works.
Note that brw_draw_indirect_prims calls brw_draw_prims internally
and gets its update to Array._DrawArray by this way.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Mathias Fröhlich <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_context.h')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.h b/src/mesa/drivers/dri/i965/brw_context.h index 177273c3645..f049d086492 100644 --- a/src/mesa/drivers/dri/i965/brw_context.h +++ b/src/mesa/drivers/dri/i965/brw_context.h @@ -36,6 +36,7 @@ #include <stdbool.h> #include "main/macros.h" #include "main/mtypes.h" +#include "vbo/vbo.h" #include "brw_structs.h" #include "brw_pipe_control.h" #include "compiler/brw_compiler.h" @@ -954,6 +955,9 @@ struct brw_context * These bitfields indicate which workarounds are needed. */ uint8_t attrib_wa_flags[VERT_ATTRIB_MAX]; + + /* For the initial pushdown, keep the list of vbo inputs. */ + struct vbo_inputs draw_arrays; } vb; struct { |