summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/i915/drm
diff options
context:
space:
mode:
authorSt├ęphane Marchesin <marcheu@chromium.org>2013-05-04 18:59:35 -0700
committerSt├ęphane Marchesin <marcheu@chromium.org>2013-05-08 02:06:56 -0700
commitfc24c7aedeff6639e9438dbe7b91ca3775511223 (patch)
treede0b578dd79afa5704a2951e397f62d79ddab188 /src/gallium/winsys/i915/drm
parent7f7c7fda83eced002a4dbff483cded2e31313acd (diff)
i915g: Optimize batchbuffer sizes
Now that we don't throttle at every batchbuffer, we can shrink the size of batchbuffers to achieve early flushing. This gives a significant speed boost in a lot of games (on the order of 20%).
Diffstat (limited to 'src/gallium/winsys/i915/drm')
-rw-r--r--src/gallium/winsys/i915/drm/i915_drm_winsys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/winsys/i915/drm/i915_drm_winsys.c b/src/gallium/winsys/i915/drm/i915_drm_winsys.c
index 6c8a10d800f..9e16f409cea 100644
--- a/src/gallium/winsys/i915/drm/i915_drm_winsys.c
+++ b/src/gallium/winsys/i915/drm/i915_drm_winsys.c
@@ -56,7 +56,7 @@ i915_drm_winsys_create(int drmFD)
idws->fd = drmFD;
idws->base.pci_id = deviceID;
- idws->max_batch_size = 16 * 4096;
+ idws->max_batch_size = 1 * 4096;
idws->base.destroy = i915_drm_winsys_destroy;