April 5th, 2007

face

drm modesetting 101...

There has been much discussion on putting modesetting in the kernel, and it has been suggested to take the randr-1.2 interface and add it to the DRM to see what it would turn out like,

Well a few weeks ago Jakob Bornecrantz started looking at the DRM API for it and Jesse Barnes (from Intel) started looking at adding mode setting code to the i915/intel DRM driver. I also suddenly needed to set modes on both DVI and VGA without X for a work project, and I needed it soon, so I've just gone hell for leather for 3-4 days on it, adding the crtc/output code, sdvo setting, and redoing/munging Jakob's and Jesse's code to fit in with how things "should work".

I've pushed it all into the modesetting-101 branch of the DRM tree, I've been using miniglx as my userspace tester, and I can read the mode list and get the crtc/output info and set the mode on a crtc with my hacked up code...

It stills needs hooking up of the framebuffer interface and we probably need to think about some of it some more...

its not working perfectly yet but I'm a bit wrecked and going to Brisbane for the long weekend with Gia on Saturday.