summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_cp.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2014-08-21 12:51:08 +0800
committerChia-I Wu <[email protected]>2014-08-26 14:11:02 +0800
commite3c251071b0c9396c3ec76d1cf943c60ae297281 (patch)
tree559dd3ad1f8355a50ca53b701e107948cd409c8b /src/gallium/drivers/ilo/ilo_cp.c
parent6c73478223a0ed76e54f14c46831974c3efaacdf (diff)
ilo: use genhw command opcodes
Replace ILO_GPE_MI and ILO_GPE_CMD with magic values by descriptive genhw macros.
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);
}
/**