ilo: remove handle_invalid_batch_bo()
authorChia-I Wu <olvaffe@gmail.com>
Mon, 22 Sep 2014 15:32:18 +0000 (23:32 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Tue, 23 Sep 2014 02:08:05 +0000 (10:08 +0800)
commit34e807817fb06b800f588b7e966e579110afeb2d
tree00a15643a28cfefd390dcc6e0730991c5f6ea5ae
parent2c1f978d6c70dcf1cb854560572a5bca4da1da88
ilo: remove handle_invalid_batch_bo()

It was used to set has_gen6_wa_pipe_control to false when the batch buffer
changed.  When called from emit_flush() and others, it also unset
ILO_3D_PIPELINE_INVALIDATE_BATCH_BO so that the following emit_draw() will not
set has_gen6_wa_pipe_control to false again.  It sounded error-prone and was
just ugly.

We should be able to achieve the same goal by reset has_gen6_wa_pipe_control
in ilo_3d_pipeline_invalidate().  With handle_invalid_batch_bo() gone, the
emit functions can also be inlined.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/drivers/ilo/ilo_3d_pipeline.c
src/gallium/drivers/ilo/ilo_3d_pipeline.h
src/gallium/drivers/ilo/ilo_3d_pipeline_gen6.c