ilo: construct depth/stencil command in create_surface()
authorChia-I Wu <olvaffe@gmail.com>
Tue, 18 Jun 2013 04:33:15 +0000 (12:33 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 18 Jun 2013 08:23:13 +0000 (16:23 +0800)
commit443dc15cf77edcaa7804c4277f0cce5d7c1d6b25
tree2373d502ca0da8d105400371b41f9fa6a953f912
parenteb2021507556633cd6ba64cda26653e3c43e80df
ilo: construct depth/stencil command in create_surface()

Add ilo_gpe_init_zs_surface() to construct

 3DSTATE_DEPTH_BUFFER
 3DSTATE_STENCIL_BUFFER
 3DSTATE_HIER_DEPTH_BUFFER

at surface creation time.  This allows fast state emission in draw_vbo().
src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c
src/gallium/drivers/ilo/ilo_3d_pipeline_gen7.c
src/gallium/drivers/ilo/ilo_gpe.h
src/gallium/drivers/ilo/ilo_gpe_gen6.c
src/gallium/drivers/ilo/ilo_gpe_gen6.h
src/gallium/drivers/ilo/ilo_state.c