summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2012-08-31 12:56:31 +0300
committerDaniel Leung <daniel.leung@intel.com>2012-10-12 08:20:45 -0700
commitc878105aa842f6a7fbec5414d50cbf93892b3a1b (patch)
treeb4254a044c6160352e3a30737b0cfbea97992bd5
parent28d19f649f276ed8302a7d3bab078f692a84e6d9 (diff)
downloadexternal_drm_gralloc-c878105aa842f6a7fbec5414d50cbf93892b3a1b.zip
external_drm_gralloc-c878105aa842f6a7fbec5414d50cbf93892b3a1b.tar.gz
external_drm_gralloc-c878105aa842f6a7fbec5414d50cbf93892b3a1b.tar.bz2
gralloc_drm_intel: set gem handle for each bo
not just fbs, potentially anything can be used as framebuffer by kms code Change-Id: Ib710bb62ae23cf58a987c6614306711dedb11cbf Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r--gralloc_drm_intel.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gralloc_drm_intel.c b/gralloc_drm_intel.c
index 8e74c66..519827f 100644
--- a/gralloc_drm_intel.c
+++ b/gralloc_drm_intel.c
@@ -442,8 +442,7 @@ static struct gralloc_drm_bo_t *intel_alloc(struct gralloc_drm_drv_t *drv,
}
}
- if (handle->usage & GRALLOC_USAGE_HW_FB)
- ib->base.fb_handle = ib->ibo->handle;
+ ib->base.fb_handle = ib->ibo->handle;
ib->base.handle = handle;