diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-09 18:39:00 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-06-11 11:03:00 +0800 |
commit | 188626de3390261c9ba089d7c2085b81218d319f (patch) | |
tree | c7d7baf24db41573c329c7bab2e453ab849f0621 /src/intel/intel_driver.c | |
parent | 5262e04facf01c7165ecfc604350691cc8a3efab (diff) |
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>
Diffstat (limited to 'src/intel/intel_driver.c')
-rw-r--r-- | src/intel/intel_driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/intel_driver.c b/src/intel/intel_driver.c index 989193a1..bb2f9b29 100644 --- a/src/intel/intel_driver.c +++ b/src/intel/intel_driver.c @@ -129,7 +129,7 @@ error: } /* just used for maximum relocation number in drm_intel */ -#define BATCH_SIZE 0x2000 +#define BATCH_SIZE 0x4000 static void intel_driver_memman_init(intel_driver_t *driver) |