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/drivers/ilo/ilo_cp.c | |
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/drivers/ilo/ilo_cp.c')
-rw-r--r-- | src/gallium/drivers/ilo/ilo_cp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/ilo/ilo_cp.c b/src/gallium/drivers/ilo/ilo_cp.c index 8bcb19625f8..cd94eec0fe5 100644 --- a/src/gallium/drivers/ilo/ilo_cp.c +++ b/src/gallium/drivers/ilo/ilo_cp.c @@ -272,7 +272,7 @@ ilo_cp_destroy(struct ilo_cp *cp) * Create a command parser. */ struct ilo_cp * -ilo_cp_create(struct intel_winsys *winsys, bool direct_map) +ilo_cp_create(struct intel_winsys *winsys, int size, bool direct_map) { struct ilo_cp *cp; @@ -286,7 +286,7 @@ ilo_cp_create(struct intel_winsys *winsys, bool direct_map) cp->ring = ILO_CP_RING_RENDER; cp->no_implicit_flush = false; - cp->bo_size = 8192; + cp->bo_size = size; if (!direct_map) { cp->sys = MALLOC(cp->bo_size * 4); |