summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2010-10-29 12:23:59 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2010-10-29 12:25:23 +0100
commit5afc7472b155e8e940f12a38baf80c298dc3b364 (patch)
tree8511b455f0420fd10be121936a70595a707f80fc /src
parent6b3ce2e8701e7c3fcd30ca07fc13a2cdcf62560d (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>
Diffstat (limited to 'src')
-rw-r--r--src/intel_memory.c3
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;