diff mbox

drmmode: unreserve userspace fences

Message ID 1263460410-3778-1-git-send-email-daniel.vetter@ffwll.ch (mailing list archive)
State Superseded
Headers show

Commit Message

Daniel Vetter Jan. 14, 2010, 9:13 a.m. UTC
None
diff mbox

Patch

diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index b1dee76..7dfc4b3 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -1384,6 +1384,7 @@  Bool drmmode_pre_init(ScrnInfoPtr scrn, int fd, int cpp)
 {
 	xf86CrtcConfigPtr   xf86_config;
 	drmmode_ptr drmmode;
+	struct drm_i915_setparam sp;
 	int i;
 
 	drmmode = xnfalloc(sizeof *drmmode);
@@ -1410,6 +1411,11 @@  Bool drmmode_pre_init(ScrnInfoPtr scrn, int fd, int cpp)
 		drmmode_output_init(scrn, drmmode, i);
 
 	xf86InitialConfiguration(scrn, TRUE);
+	/* Kernel does all the tiled buffer fencing for us. */
+	sp.param = I915_SETPARAM_NUM_USED_FENCES;
+	sp.value = 0;
+	drmCommandWrite(drmmode->fd, DRM_I915_SETPARAM,
+			      &sp, sizeof(sp));
 
 	return TRUE;
 }