ilo: add a pass to finalize ilo_ve_state
authorChia-I Wu <olvaffe@gmail.com>
Tue, 30 Sep 2014 02:32:53 +0000 (10:32 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 30 Sep 2014 08:41:32 +0000 (16:41 +0800)
commit2d13b5ac81a8c2aa1f36be7e3350b12fbdbd65e8
tree4aae00663c4bdb2fd84bf1f11389665620844a22
parent2b4c8ffc30c097cb89b2e76e64a764eb258d5491
ilo: add a pass to finalize ilo_ve_state

Add finalize_vertex_elements() to finalize ilo_ve_state.  This fixes a
potential issue with URB entry allocation for VS and move the complexity of
gen6_3DSTATE_VERTEX_ELEMENTS() to the new function.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_blitter_rectlist.c
src/gallium/drivers/ilo/ilo_builder_3d_top.h
src/gallium/drivers/ilo/ilo_render_gen6.c
src/gallium/drivers/ilo/ilo_render_gen7.c
src/gallium/drivers/ilo/ilo_state.c
src/gallium/drivers/ilo/ilo_state.h
src/gallium/drivers/ilo/ilo_state_gen.h
src/gallium/drivers/ilo/ilo_state_gen6.c