GBE: increase batch size to relax the max reloc restriction.
authorZhigang Gong <zhigang.gong@intel.com>
Mon, 9 Jun 2014 10:39:00 +0000 (18:39 +0800)
committerZhigang Gong <zhigang.gong@intel.com>
Wed, 11 Jun 2014 03:03:00 +0000 (11:03 +0800)
commit188626de3390261c9ba089d7c2085b81218d319f
treec7d7baf24db41573c329c7bab2e453ab849f0621
parent5262e04facf01c7165ecfc604350691cc8a3efab
GBE: increase batch size to relax the max reloc restriction.

The drm will restrict the max reloc to (batch size)/8.
Current batch buffer size is 8K, then the max reloc is 1024.
As the max workgroup size is 1024, if it uses simd16 channel
then the thread_n will be 1024/16 = 64. And if it need to bind
32 buffers, then the reloc count will be 64*32 which is 2048
and exceed current limitation. Let's increase the batch size to
16K to relax this restrication to 2048 relocs.

Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
src/intel/intel_driver.c