assembler/bdw: Add the DATA_PORT_CACHE1 shared function for Gen8+
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 9 Apr 2013 01:59:16 +0000 (09:59 +0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Wed, 6 Nov 2013 17:39:41 +0000 (09:39 -0800)
This is required to send some messages to data port in GPU shader.
For example: media_block_write message.

Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
assembler/brw_defines.h
assembler/gram.y

index 98757da..f74342c 100644 (file)
@@ -878,6 +878,7 @@ enum brw_message_target {
 
    GEN7_SFID_DATAPORT_DATA_CACHE     = 10,
 
+   HSW_SFID_DATAPORT_DATA_CACHE1     = 0x0c,
    HSW_SFID_CRE                      = 0x0d,
 };
 
index 03f1be6..bdcfe79 100644 (file)
@@ -1842,7 +1842,8 @@ msgtarget:        NULL_TOKEN
                       if ($3 != GEN6_SFID_DATAPORT_SAMPLER_CACHE &&
                           $3 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
                           $3 != GEN6_SFID_DATAPORT_CONSTANT_CACHE &&
-                          $3 != GEN7_SFID_DATAPORT_DATA_CACHE) {
+                          $3 != GEN7_SFID_DATAPORT_DATA_CACHE &&
+                          $3 != HSW_SFID_DATAPORT_DATA_CACHE1) {
                           error (&@3, "error: wrong cache type\n");
                       }