intel/fs: Introduce regioning lowering pass.
authorFrancisco Jerez <currojerez@riseup.net>
Sat, 29 Dec 2018 12:00:13 +0000 (04:00 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Jan 2019 20:03:09 +0000 (12:03 -0800)
commitefa4e4bc5fc39cccc6d7103e9f15b795de3ee07c
tree2944f949882b65f91a6f98db5d9548e822427d58
parentb94519971a2731143e801ec445d0f2c72e95d8d1
intel/fs: Introduce regioning lowering pass.

This legalization pass is meant to handle situations where the source
or destination regioning controls of an instruction are unsupported by
the hardware and need to be lowered away into separate instructions.
This should be more reliable and future-proof than the current
approach of handling CHV/BXT restrictions manually all over the
visitor.  The same mechanism is leveraged to lower unsupported type
conversions easily, which obsoletes the lower_conversions pass.

v2: Give conditional modifiers the same treatment as predicates for
    SEL instructions in lower_dst_modifiers() (Iago).  Special-case a
    couple of other instructions with inconsistent conditional mod
    semantics in lower_dst_modifiers() (Curro).

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/intel/Makefile.sources
src/intel/compiler/brw_fs.cpp
src/intel/compiler/brw_fs.h
src/intel/compiler/brw_fs_lower_regioning.cpp [new file with mode: 0644]
src/intel/compiler/brw_ir_fs.h
src/intel/compiler/meson.build