Hi,

I've done a port of miniglx to a TTM-only system (no legacy buffers),

It's in the miniglx-ttm-only branch of my personal mesa repo..
http://gitweb.freedesktop.org/?p=users/airlied/mesa.git;a=shortlog;h=miniglx-ttm-only

It is just an example of how to use drmBOs to allocate the memory spaces 
and buffers, it isn't 100% stable but I can run manytex on it for a while 
before it crashes, it also requires hacks to the drm to remove the master 
only on the drawable ioctls (nothing to do with TTM just a miniglx 
limitaton due to laziness..) and there are couple of changes from Thomas 
to fix the user object lookup which hopefully he'll push soon to the drm..

I'm probably allocating the front/back/depth wrongly I think it should 
probably use NO_MOVE instead of NO_EVICT and have the client side validate 
things on lock as in theory with rotation/resizing these buffers could 
change size.. I'll see if I can arrange that..

I have to say the drmBO interface so far seems to act like I would expect 
them to and I wish we had them years ago :-)

Dave.

-- 
David Airlie, Software Engineer
http://www.skynet.ie/~airlied / airlied at skynet.ie
Linux kernel - DRI, VAX / pam_smb / ILUG


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to