Skip to contentSkip to conversation

drm/gma500: fix things after get/put page helpers

PATCH New Rob Clark 1 participant 1 message Oct 8, 2013

Subsystems (3)
lore
Share & tools
lore

Rob Clark

author
#0 lore raw

PATCH 1/1 drm/gma500: fix things after get/put page helpers

Commit 8b9ba7a3 'drm/gma500: use gem get/put page helpers' was missing a line, which resulted in garbled screen.

---
 drivers/gpu/drm/gma500/gtt.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/gma500/gtt.c +1 -0
index 92babac..2db731f 100644
@@ -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;
Signature · 6 lines
1.8.3.1

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel