summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_builder.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-09-12 11:11:47 +0800
committerChia-I Wu <[email protected]>2014-09-12 16:58:30 +0800
commit50d2d9a69dab5e9b004292084d6d0ee821c981d8 (patch)
treea926e8f2d70456c1c26c07ecb55e416c7ccfa44e /src/gallium/drivers/ilo/ilo_builder.c
parent521887f9fd186c8dd39457f2f54be889558676bc (diff)
ilo: move MI functions to ilo_builder_mi.h
Have a centralized place for MI functions, and remove the duplicated gen6_MI_LOAD_REGISTER_IMM().
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_builder.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_builder.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/gallium/drivers/ilo/ilo_builder.c b/src/gallium/drivers/ilo/ilo_builder.c
index 229354f6cd6..18513ebbf7e 100644
--- a/src/gallium/drivers/ilo/ilo_builder.c
+++ b/src/gallium/drivers/ilo/ilo_builder.c
@@ -538,29 +538,3 @@ ilo_builder_batch_state_base_address(struct ilo_builder *builder,
dw[8] = 0xfffff000 + init_all;
dw[9] = init_all;
}
-
-/**
- * Add a MI_BATCH_BUFFER_END to the batch buffer. Pad if necessary.
- */
-void
-ilo_builder_batch_mi_batch_buffer_end(struct ilo_builder *builder)
-{
- const struct ilo_builder_writer *bat =
- &builder->writers[ILO_BUILDER_WRITER_BATCH];
- uint32_t *dw;
-
- /*
- * From the Sandy Bridge PRM, volume 1 part 1, page 107:
- *
- * "The batch buffer must be QWord aligned and a multiple of QWords in
- * length."
- */
- if (bat->used & 0x7) {
- ilo_builder_batch_pointer(builder, 1, &dw);
- dw[0] = GEN6_MI_CMD(MI_BATCH_BUFFER_END);
- } else {
- ilo_builder_batch_pointer(builder, 2, &dw);
- dw[0] = GEN6_MI_CMD(MI_BATCH_BUFFER_END);
- dw[1] = GEN6_MI_CMD(MI_NOOP);
- }
-}