i965/state: Support multiple pipelines in brw->num_atoms

Graphics / Mesa 3D Graphics Library / Mesa - Jordan Justen [intel.com] - 31 March 2015 18:40 UTC

brw->num_atoms is converted to an array, but currently just an array of length 1.

Adds brw_copy_pipeline_atoms which copies the atoms for a pipeline, and sets brw->num_atoms[p] for pipeline p.

v2:
- Rename brw->atoms[] to render_atoms
- Rename brw_add_pipeline_atoms to brw_copy_pipeline_atoms
- Rename brw_pipeline_first_atom to brw_get_pipeline_atoms

db11955 i965/state: Support multiple pipelines in brw->num_atoms
src/mesa/drivers/dri/i965/brw_context.h | 10 ++-
src/mesa/drivers/dri/i965/brw_state_upload.c | 94 ++++++++++++++++----------
2 files changed, 65 insertions(+), 39 deletions(-)

Upstream: cgit.freedesktop.org


  • Share