diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2019-03-25 14:01:51 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2019-03-26 10:29:22 -0700 |
commit | 74164bc7eb6f1d4febb41d7a9c8d1fc18af9cb12 (patch) | |
tree | fb99fbfdc48c23cd23fc7a7ec1be7f67958d940c | |
parent | 042f16e6afbfdeb2174d1b6b4e9ae3e225319f63 (diff) |
Partial derivatives
squash! WIP: intel/compiler: Import Gen8 / Gen9 ALU machine description
-rw-r--r-- | src/intel/compiler/gen8_md.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/intel/compiler/gen8_md.py b/src/intel/compiler/gen8_md.py index c993c993196e..2673bcd32cb8 100644 --- a/src/intel/compiler/gen8_md.py +++ b/src/intel/compiler/gen8_md.py @@ -151,6 +151,16 @@ gen8_md = [ (('f2b32', 'a@32'), Instruction('CMP', r, retype(a, F), imm(0.0, F)).cmod('NZ')), (('f2b32', 'a@16'), Instruction('CMP', r, retype(a, HF), imm(0.0, HF)).cmod('NZ')), + # Partial derivatives + (('fddx', a), Instruction('FS_OPCODE_DDX_FINE', r, a), 'fs_key->high_quality_derivatives'), + (('fddx', a), Instruction('FS_OPCODE_DDX_COARSE', r, a), '!fs_key->high_quality_derivatives'), + (('fddx_fine', a), Instruction('FS_OPCODE_DDX_FINE', r, a)), + (('fddx_coarse', a), Instruction('FS_OPCODE_DDX_COARSE', r, a)), + (('fddy', a), Instruction('FS_OPCODE_DDY_FINE', r, a), 'fs_key->high_quality_derivatives'), + (('fddy', a), Instruction('FS_OPCODE_DDY_COARSE', r, a), '!fs_key->high_quality_derivatives'), + (('fddy_fine', a), Instruction('FS_OPCODE_DDY_FINE', r, a)), + (('fddy_coarse', a), Instruction('FS_OPCODE_DDY_COARSE', r, a)), + # General arithmetic (('fadd', a, b), Instruction('ADD', r, a, b)), (('iadd', a, b), Instruction('ADD', r, a, b)), |