diff options
author | Chia-I Wu <[email protected]> | 2014-03-09 02:07:18 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2014-03-10 16:42:42 +0800 |
commit | 42c1ce4c03c0c5f4fb61b981143cf2638d87c834 (patch) | |
tree | 6d8abba785d1602df5813b0598fe6f0efbb16d24 /src/gallium/winsys/intel | |
parent | a434ac045eb2e0333ee8bb6e44aa0a46de2e7438 (diff) |
ilo: winsys may limit the batch buffer size
The maximum batch buffer size is determined at the time of
drm_intel_bufmgr_gem_init(). Make sure the pipe driver does not exceed the
limit.
Diffstat (limited to 'src/gallium/winsys/intel')
-rw-r--r-- | src/gallium/winsys/intel/drm/intel_drm_winsys.c | 2 | ||||
-rw-r--r-- | src/gallium/winsys/intel/intel_winsys.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/winsys/intel/drm/intel_drm_winsys.c b/src/gallium/winsys/intel/drm/intel_drm_winsys.c index bd805fdb786..5cdf39fe32e 100644 --- a/src/gallium/winsys/intel/drm/intel_drm_winsys.c +++ b/src/gallium/winsys/intel/drm/intel_drm_winsys.c @@ -135,6 +135,8 @@ init_info(struct intel_winsys *winsys) info->devid = drm_intel_bufmgr_gem_get_devid(winsys->bufmgr); + info->max_batch_size = BATCH_SZ; + get_param(winsys, I915_PARAM_HAS_LLC, &val); info->has_llc = val; diff --git a/src/gallium/winsys/intel/intel_winsys.h b/src/gallium/winsys/intel/intel_winsys.h index 15f1aec1093..b5995fbb40f 100644 --- a/src/gallium/winsys/intel/intel_winsys.h +++ b/src/gallium/winsys/intel/intel_winsys.h @@ -70,6 +70,7 @@ struct intel_bo; struct intel_winsys_info { int devid; + int max_batch_size; bool has_llc; bool has_gen7_sol_reset; bool has_address_swizzling; |