GBE: fixed a prediction bug in typed write instruction.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 15 May 2013 03:47:08 +0000 (11:47 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 15 May 2013 09:09:51 +0000 (17:09 +0800)
commite0d9c5b721771d3e8d04bb8f540dc23409901839
tree85163c46a120274d11d43346c1ae18297bfd973c
parent80bc513a8c8fd210a74eadc8608c77a600c3099a
GBE: fixed a prediction bug in typed write instruction.

We need to put the header initialization and the LOD initialization
to no mask and no predication state. For all the other parts, we need
to enable mask and use the current predication state and need to set
the quater control properly. Otherwise, when write_image is called in
a condition-branch block, it will trigger this bug and doesn't write
data out correctly.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Tested-by: Lv, Meng <meng.lv@intel.com>
backend/src/backend/gen_context.cpp
backend/src/backend/gen_encoder.cpp