intel/compiler: Unset flag reg when FB write is not predicated
authorMatt Turner <mattst88@gmail.com>
Mon, 29 Apr 2019 23:01:08 +0000 (16:01 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 7 May 2019 21:33:48 +0000 (14:33 -0700)
commite8c74a1e1657f6a03e038fb72b50bfd994771850
tree6c0d0a2d4a6ce414608fba2b9b5f67ccee5aa465
parent5d7a9e08114b0cda28656c6f4109dc6b4d98327f
intel/compiler: Unset flag reg when FB write is not predicated

In the FS IR we pretend that the instruction is predicated with (+f0.1)
just for flag dependency tracking purposes. Since the instruction
doesn't support predication before Haswell, we unset the predicate so we
should also unset the flag register so that we can round-trip the
disassembly.

Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/compiler/brw_fs_generator.cpp