aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson2010-10-29 04:49:54 -0500
committerChris Wilson2010-10-29 04:49:54 -0500
commit362457715faacd3101929e5f0d8ae250d0ad09df (patch)
tree5e6570b972e10adda463aabe1a9f34ad883f9092 /include
parent0a1ff35c70730160973715b82112cd97c62ac13e (diff)
downloadexternal-libgbm-362457715faacd3101929e5f0d8ae250d0ad09df.tar.gz
external-libgbm-362457715faacd3101929e5f0d8ae250d0ad09df.tar.xz
external-libgbm-362457715faacd3101929e5f0d8ae250d0ad09df.zip
intel: enable relaxed fence allocation for i915
The kernel has always allowed userspace to underallocate objects supplied for fencing. However, the kernel only allocated the object size for the fence in the GTT and so caused tiling corruption. More recently the kernel does allocate the full fence region in the GTT for an under-sized object and so advertises that clients may finally make use of this feature. The biggest benefit is for texture-heavy GL games on i945 such as World of Padman which go from needing over 1GiB of RAM to play to fitting in the GTT! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/drm/i915_drm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index bd930614..19da2c04 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -278,6 +278,7 @@ typedef struct drm_i915_irq_wait {
278#define I915_PARAM_HAS_EXECBUF2 9 278#define I915_PARAM_HAS_EXECBUF2 9
279#define I915_PARAM_HAS_BSD 10 279#define I915_PARAM_HAS_BSD 10
280#define I915_PARAM_HAS_BLT 11 280#define I915_PARAM_HAS_BLT 11
281#define I915_PARAM_HAS_RELAXED_FENCING 12
281 282
282typedef struct drm_i915_getparam { 283typedef struct drm_i915_getparam {
283 int param; 284 int param;