i965/fs/generator: refactor rounding mode helper in preparation for float controls
authorSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Thu, 12 Sep 2019 22:34:35 +0000 (01:34 +0300)
committerAndres Gomez <agomez@igalia.com>
Tue, 17 Sep 2019 20:39:19 +0000 (23:39 +0300)
commit28da9558f50a4b015799cf128c5914c9c5e93862
tree860e484e03d595cc73d88a448028e075b286775f
parentcdace5b0c65df29c65aa349158264bffa4147db9
i965/fs/generator: refactor rounding mode helper in preparation for float controls

v2:
- Fix bug in defining BRW_CR0_FP_MODE_MASK.

v3:
- Update comment (Caio).

v4:
- Split the patch into the helper (this one) and the new
  opcode (Caio).

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/compiler/brw_eu.h
src/intel/compiler/brw_eu_emit.c
src/intel/compiler/brw_fs_generator.cpp