diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-29 12:23:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-29 12:25:23 +0100 |
commit | 5afc7472b155e8e940f12a38baf80c298dc3b364 (patch) | |
tree | 8511b455f0420fd10be121936a70595a707f80fc | |
parent | 6b3ce2e8701e7c3fcd30ca07fc13a2cdcf62560d (diff) |
intel: don't pass a dangling pointer to GET_PARAM
I fail at cut'n'paste.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-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 054d028f..4daf036f 100644 --- a/src/intel_memory.c +++ b/src/intel_memory.c @@ -295,7 +295,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); @@ -304,6 +304,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; |