assembler/bdw: Video Motion Estimation(VME) message
authorXiang, Haihao <haihao.xiang@intel.com>
Fri, 22 Feb 2013 03:14:10 +0000 (11:14 +0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Wed, 6 Nov 2013 17:39:41 +0000 (09:39 -0800)
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
assembler/gen8_instruction.h
assembler/gram.y

index 493187c..4163234 100644 (file)
@@ -208,6 +208,14 @@ F(ts_request_type,         97,  97)
 F(ts_opcode,               96,  96)
 /** @} */
 
+/**
+ * Video Motion Estimation message function control bits:
+ *  @ {
+ */
+F(vme_message_type,        110, 109)
+F(vme_binding_table_index, 103,  96)
+/** @} */
+
 #undef F
 
 /**
index 94fff79..c75e571 100644 (file)
@@ -1778,7 +1778,12 @@ msgtarget:       NULL_TOKEN
                {
                  GEN(&$$)->bits3.generic.msg_target = GEN6_SFID_VME;
 
-                 if (IS_GENp(6)) { 
+                 if (IS_GENp(8)) {
+                      gen8_set_sfid(GEN8(&$$), GEN6_SFID_VME);
+                      gen8_set_header_present(GEN8(&$$), 1); /* Must be 1 */
+                      gen8_set_vme_binding_table_index(GEN8(&$$), $3);
+                      gen8_set_vme_message_type(GEN8(&$$), $9);
+                 } else if (IS_GENp(6)) {
                       GEN(&$$)->bits2.send_gen5.sfid = GEN6_SFID_VME;
                       GEN(&$$)->bits3.vme_gen6.binding_table_index = $3;
                       GEN(&$$)->bits3.vme_gen6.search_path_index = $5;