Assembler/bdw: Remove the unsupported cache agent for WRITE(...)
authorZhao Yakui <yakui.zhao@intel.com>
Tue, 28 Jan 2014 01:53:50 +0000 (09:53 +0800)
committerDamien Lespiau <damien.lespiau@intel.com>
Thu, 13 Feb 2014 07:53:04 +0000 (07:53 +0000)
The Sampler/Constant cache is read-only. And it can't be used as
the target cache agent of WRITE message.

Reviewed-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
assembler/gram.y

index f4145bd..f4d270d 100644 (file)
@@ -1652,9 +1652,7 @@ msgtarget:        NULL_TOKEN
                {
                  if (IS_GENp(8)) {
                       if ($9 != 0 &&
-                         $9 != GEN6_SFID_DATAPORT_SAMPLER_CACHE &&
                          $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
-                         $9 != GEN6_SFID_DATAPORT_CONSTANT_CACHE &&
                          $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
                          $9 != HSW_SFID_DATAPORT_DATA_CACHE1) {
                          error (&@9, "error: wrong cache type\n");
@@ -1715,9 +1713,7 @@ msgtarget:        NULL_TOKEN
                {
                  if (IS_GENp(8)) {
                       if ($9 != 0 &&
-                         $9 != GEN6_SFID_DATAPORT_SAMPLER_CACHE &&
                          $9 != GEN6_SFID_DATAPORT_RENDER_CACHE &&
-                         $9 != GEN6_SFID_DATAPORT_CONSTANT_CACHE &&
                          $9 != GEN7_SFID_DATAPORT_DATA_CACHE &&
                          $9 != HSW_SFID_DATAPORT_DATA_CACHE1) {
                          error (&@9, "error: wrong cache type\n");