diff options
-rw-r--r-- | src/intel_memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel_memory.c b/src/intel_memory.c index 2b80df21..90e7be7d 100644 --- a/src/intel_memory.c +++ b/src/intel_memory.c @@ -1318,7 +1318,7 @@ void intel_set_gem_max_sizes(ScrnInfoPtr scrn) intel_screen_private *intel = intel_get_screen_private(scrn); struct drm_i915_gem_get_aperture aperture; drm_i915_getparam_t gp; - int ret; + int ret, value; aperture.aper_available_size = 0; drmIoctl(intel->drmSubFD, DRM_IOCTL_I915_GEM_GET_APERTURE, &aperture); @@ -1327,6 +1327,7 @@ void intel_set_gem_max_sizes(ScrnInfoPtr scrn) intel_set_max_gtt_map_size(intel, &aperture); intel_set_max_tiling_size(intel, &aperture); + gp.value = &value; gp.param = I915_PARAM_HAS_RELAXED_FENCING; ret = drmIoctl(intel->drmSubFD, DRM_IOCTL_I915_GETPARAM, &gp); intel->has_relaxed_fencing = ret == 0; |