@@ -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;
}