On Thursday, January 8, 2009 4:24 am Paul Winder wrote: > I'm still trying to figure out how to get the framebuffer address using > the drm gem code. > > I think I need to: > drmAddMap(...., address of framebuffer) - gets handle > drmMap(... handle) > drmModeAddFB(... handle...) > > Then I can get the frame buffer id to use in my drmModeSetCrtc() calls... > > Can someone confirm I'm on the right track? > > The modesetting-101 branch had calls to drmBOCreate() which seemed to do > the right thing > > But them my problem is how to get the framebuffer address in a generic > (no chip specific way). I can see ioctls for radeon which return the > framebuffer address, but not i915 family (which is what I'm using). Do I > need to add the equivalent radeon call to the i915 driver? > > How is it done in X. Is it all chip specific?
You should check out the modetest program; it has allocation & mode setting code that works against the latest kernels using the Intel BO API. -- Jesse Barnes, Intel Open Source Technology Center ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel