[PATCH] drm/gma500: fix things after get/put page helpers
Rob Clark
robdclark at gmail.com
Tue Oct 8 22:31:59 CEST 2013
Commit 8b9ba7a3 'drm/gma500: use gem get/put page helpers' was missing a
line, which resulted in garbled screen.
Signed-off-by: Rob Clark <robdclark at gmail.com>
Tested-by: Guillaume CLÉMENT <gclement at baobob.org>
---
drivers/gpu/drm/gma500/gtt.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c
index 92babac..2db731f 100644
--- a/drivers/gpu/drm/gma500/gtt.c
+++ b/drivers/gpu/drm/gma500/gtt.c
@@ -204,6 +204,7 @@ static int psb_gtt_attach_pages(struct gtt_range *gt)
if (IS_ERR(pages))
return PTR_ERR(pages);
+ gt->npage = gt->gem.size / PAGE_SIZE;
gt->pages = pages;
return 0;
--
1.8.3.1
More information about the dri-devel
mailing list