i965/state: Support multiple pipelines in brw->num_atoms
authorJordan Justen <jordan.l.justen@intel.com>
Sun, 8 Mar 2015 06:44:39 +0000 (22:44 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 31 Mar 2015 23:40:23 +0000 (16:40 -0700)
commitdb119550725d438c928c50382a2a675b37c24a66
tree736131a97ace090c8d5c61e7a0e489cdf4a453ed
parent736a31d46252187a04a7b5c0119e3ba9be2418cb
i965/state: Support multiple pipelines in brw->num_atoms

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

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_state_upload.c