intel/compiler: Clear accumulator register before EOT
authorSagar Ghuge <sagar.ghuge@intel.com>
Wed, 15 Jan 2020 00:12:31 +0000 (16:12 -0800)
committerMarge Bot <eric+marge@anholt.net>
Mon, 27 Jan 2020 19:48:11 +0000 (19:48 +0000)
commita27542c5ddec8dd6a64a9c236cf6bea1db1b9e48
tree9f01d45697ff8ebc58bc1dd65d4edc167d4dd2d9
parent480cf7d9bf09086b246532e3612c61c8e2ea59da
intel/compiler: Clear accumulator register before EOT

v2: (Francisco Jerez)
- Drop vec4 changes.
- Handle explicit acc0 operand and implicit one.
- Make sure instruction is SIMD16, prediction is off and default mask
  control set to true.

v3: (Francisco Jerez)
- Clear accumulator only when it's written.
- Use BRW_MASK_DISABLE instead of true.
- Use correct width for brw_acc_reg().
- Fix last_inst_offset.

v4: (Francisco Jerez)
- Don't check for last instruction for accummulator write.

Signed-off-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3376>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3376>
src/intel/compiler/brw_fs_generator.cpp