ilo: support PIPE_CAP_USER_INDEX_BUFFERS
authorChia-I Wu <olvaffe@gmail.com>
Wed, 26 Jun 2013 05:44:27 +0000 (13:44 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Wed, 26 Jun 2013 08:42:46 +0000 (16:42 +0800)
commit95c21f12f321bb33ae8e1f1b255680ac8eeffade
treebe15c847df41f9b7b82c7ad18c2891b0b7c0bb12
parent5fb5d4f0a6208e720998bbdbfe83df1035957f4a
ilo: support PIPE_CAP_USER_INDEX_BUFFERS

We want to access the user buffer, if available, when primitive restart is
enabled and the restart index/primitive type is not natively supported.

And since we are handling index buffer uploads in the driver with this change,
we can also work around misalignment of index buffer offsets.
src/gallium/drivers/ilo/ilo_3d.c
src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c
src/gallium/drivers/ilo/ilo_context.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_gpe_gen7.c
src/gallium/drivers/ilo/ilo_screen.c
src/gallium/drivers/ilo/ilo_state.c