[Mesa-dev] [PATCH v2 01/11] intel: aubinator: factor out MI_BATCH_BUFFER_END

Lionel Landwerlin lionel.g.landwerlin at intel.com
Wed Nov 1 18:12:08 UTC 2017


Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
 src/intel/tools/aubinator.c | 6 ------
 src/intel/tools/intel_aub.h | 1 +
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/intel/tools/aubinator.c b/src/intel/tools/aubinator.c
index 48d4456cc16..728edad37ff 100644
--- a/src/intel/tools/aubinator.c
+++ b/src/intel/tools/aubinator.c
@@ -43,12 +43,6 @@
 #include "intel_aub.h"
 #include "gen_disasm.h"
 
-/* Below is the only command missing from intel_aub.h in libdrm
- * So, reuse intel_aub.h from libdrm and #define the
- * AUB_MI_BATCH_BUFFER_END as below
- */
-#define AUB_MI_BATCH_BUFFER_END (0x0500 << 16)
-
 #define CSI "\e["
 #define BLUE_HEADER  CSI "0;44m"
 #define GREEN_HEADER CSI "1;42m"
diff --git a/src/intel/tools/intel_aub.h b/src/intel/tools/intel_aub.h
index 5f0aba8e68e..f9de3c918e1 100644
--- a/src/intel/tools/intel_aub.h
+++ b/src/intel/tools/intel_aub.h
@@ -42,6 +42,7 @@
 
 #define AUB_MI_NOOP			(0)
 #define AUB_MI_BATCH_BUFFER_START 	(0x31 << 23)
+#define AUB_MI_BATCH_BUFFER_END 	(0x05 << 24)
 #define AUB_PIPE_CONTROL		(0x7a000002)
 
 /* DW0: instruction type. */
-- 
2.15.0



More information about the mesa-dev mailing list