Enable half float on CHV platform.

Submitted by junyan.he@inbox.com on July 3, 2015, 7:27 a.m.

Details

Message ID 1435908462-3474-1-git-send-email-junyan.he@inbox.com
State New
Headers show

Not browsing as part of any series.

Commit Message

junyan.he@inbox.com July 3, 2015, 7:27 a.m.
From: Junyan He <junyan.he@linux.intel.com>

Signed-off-by: Junyan He <junyan.he@linux.intel.com>
---
 backend/src/backend/gen_insn_selection.cpp | 1 +
 src/cl_device_id.c                         | 1 +
 2 files changed, 2 insertions(+)

Patch hide | download patch | download mbox

diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
index cdd21e8..bb09b82 100644
--- a/backend/src/backend/gen_insn_selection.cpp
+++ b/backend/src/backend/gen_insn_selection.cpp
@@ -2052,6 +2052,7 @@  namespace gbe
     this->opaque->setHasLongType(true);
     this->opaque->setLongRegRestrict(true);
     this->opaque->setSlowByteGather(true);
+    this->opaque->setHasHalfType(true);
   }
 
   Selection9::Selection9(GenContext &ctx) : Selection(ctx) {
diff --git a/src/cl_device_id.c b/src/cl_device_id.c
index 5aca182..9f03027 100644
--- a/src/cl_device_id.c
+++ b/src/cl_device_id.c
@@ -445,6 +445,7 @@  brw_gt3_break:
     case PCI_CHIP_CHV_3:
       DECL_INFO_STRING(chv_break, intel_chv_device, name, "Intel(R) HD Graphics Cherryview");
 chv_break:
+      cl_intel_platform_enable_fp16_extension(intel_platform);
       intel_chv_device.vendor_id = device_id;
       intel_chv_device.platform = intel_platform;
       ret = &intel_chv_device;