diff options
author | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2017-11-02 20:46:40 +0200 |
---|---|---|
committer | Topi Pohjolainen <topi.pohjolainen@intel.com> | 2018-01-10 12:33:49 +0200 |
commit | 0eca44eff6be9613c10e60e1e39585b0678b30f1 (patch) | |
tree | 7ec0e401f65c48e00983048faa4723867829ba65 | |
parent | 5fd255c96ea094f12a65bdcf1a4dff27329a41f5 (diff) |
intel/compiler: Allow 16-bit math
Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
-rw-r--r-- | src/intel/compiler/brw_eu_emit.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index e8ae58483a..3b9bf08c73 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -1921,8 +1921,10 @@ void gen6_math(struct brw_codegen *p, assert(src1.file == BRW_GENERAL_REGISTER_FILE || (devinfo->gen >= 8 && src1.file == BRW_IMMEDIATE_VALUE)); } else { - assert(src0.type == BRW_REGISTER_TYPE_F); - assert(src1.type == BRW_REGISTER_TYPE_F); + assert(src0.type == BRW_REGISTER_TYPE_F || + src0.type == BRW_REGISTER_TYPE_HF); + assert(src1.type == BRW_REGISTER_TYPE_F || + src1.type == BRW_REGISTER_TYPE_HF); } /* Source modifiers are ignored for extended math instructions on Gen6. */ |