GBE: Refine the curbe entry allocation for sampler/image information.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Wed, 25 Sep 2013 09:00:16 +0000 (17:00 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 26 Sep 2013 08:55:59 +0000 (16:55 +0800)
commit187c17ed9f87a7cf235c7ca08823f956d9b06646
tree744116781e0b69c57ed03c02c216f0b547db5502
parent10924b4bb21d527e8f1ebb3392d7f8e44bee1415
GBE: Refine the curbe entry allocation for sampler/image information.

After the previous patch, we can move the image infomation curbe
entry allocation to prior to the instruction selection.

Then we can concentrate all curbe allocation before we do the
normal register allocation. This way can bring two advantages:
1. Avoid the image information curbe entry is allocated among the normal registers.
2. The register interval analyzing could handle the image/sampler information correctly.

Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
backend/src/backend/context.cpp
backend/src/backend/gen_insn_selection.cpp
backend/src/backend/gen_reg_allocation.cpp
backend/src/ir/instruction.cpp
backend/src/ir/instruction.hpp
backend/src/llvm/llvm_gen_backend.cpp
kernels/compiler_box_blur_image.cl
src/cl_command_queue_gen7.c