summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_cp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_cp.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_cp.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gallium/drivers/ilo/ilo_cp.c b/src/gallium/drivers/ilo/ilo_cp.c
index 0b2bbfacf4c..3ddec6c7bd9 100644
--- a/src/gallium/drivers/ilo/ilo_cp.c
+++ b/src/gallium/drivers/ilo/ilo_cp.c
@@ -30,9 +30,6 @@
#include "ilo_cp.h"
-#define MI_NOOP GEN_MI_CMD(MI_NOOP)
-#define MI_BATCH_BUFFER_END GEN_MI_CMD(MI_BATCH_BUFFER_END)
-
/* the size of the private space */
static const int ilo_cp_private = 2;
@@ -114,7 +111,7 @@ ilo_cp_end_buffer(struct ilo_cp *cp)
assert(cp->used + 2 <= cp->size);
- cp->ptr[cp->used++] = MI_BATCH_BUFFER_END;
+ cp->ptr[cp->used++] = GEN6_MI_CMD(MI_BATCH_BUFFER_END);
/*
* From the Sandy Bridge PRM, volume 1 part 1, page 107:
@@ -123,7 +120,7 @@ ilo_cp_end_buffer(struct ilo_cp *cp)
* length."
*/
if (cp->used & 1)
- cp->ptr[cp->used++] = MI_NOOP;
+ cp->ptr[cp->used++] = GEN6_MI_CMD(MI_NOOP);
}
/**