GBE: Clear Flag register to fix a gpu hang.
authorRuiling Song <ruiling.song@intel.com>
Thu, 22 Aug 2013 08:52:04 +0000 (16:52 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 29 Aug 2013 06:36:39 +0000 (14:36 +0800)
commit000d0870387a97a4985c5115e1663d328ce91d18
treee415b3f5178113e5a93d8283e2485551d8b62682
parent6e4e01b7a0e15f454e0b5d05887cc2870be7f5a7
GBE: Clear Flag register to fix a gpu hang.

When group size not aligned to simdWidth, prediction any8/16h will
calculate pmask also using flag register bits mapped to non-active
lanes. As flag register is not cleared by default, any8/16h used
for jmpi instruction may cause wrong jump, and possibly infinite loop.

So, we clear Flag register to 0 to make any8/16h prediction work correct.

Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
backend/src/backend/gen_context.cpp
backend/src/backend/gen_context.hpp
backend/src/backend/gen_insn_selection.cpp