assembler/bdw: Add the DATA_PORT_CACHE1 shared function for Gen8+

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>
This commit is contained in:
Zhao Yakui 2013-04-09 09:59:16 +08:00 committed by Ben Widawsky
parent 88e5f1fdf8
commit 66783e4c4f
2 changed files with 3 additions and 1 deletions

View 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,
};

View 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");
}