ilo: initialize constant buffer SURFACE_STATE early
authorChia-I Wu <olvaffe@gmail.com>
Sun, 11 Aug 2013 14:44:44 +0000 (22:44 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 12 Aug 2013 03:49:51 +0000 (11:49 +0800)
commita9b800aa81cffdcaef2490ff49986099feae2663
treede2c4238599df421d46da7267d17e8f14e76cbb7
parentb2f79a3823bd5fca3f3080351f87b41e2396c8f6
ilo: initialize constant buffer SURFACE_STATE early

Fix ilo_gpe_init_view_surface_for_buffer to allow buffer to be NULL, and add
ilo_gpe_set_view_surface_bo to set it later.  This allows us to set up
SURFACE_STATE early for constant buffers backed by user buffers.
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