[Beignet] [PATCH] Enable half float on CHV platform.
junyan.he at inbox.com
junyan.he at inbox.com
Fri Jul 3 00:27:42 PDT 2015
From: Junyan He <junyan.he at linux.intel.com>
Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
backend/src/backend/gen_insn_selection.cpp | 1 +
src/cl_device_id.c | 1 +
2 files changed, 2 insertions(+)
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;
--
1.9.1
More information about the Beignet
mailing list