On 6/22/05, Jon Smirl <[EMAIL PROTECTED]> wrote: > > Adding a new map type "so that you can tell them apart" doesn't make a > > lot of sense to me. Won't two different maps have different offsets? > > Isn't that enough to differentiate between them? > > Yes the offsets will be different. But how does user space know which > one is being used for sarea and which for xvideo support? > > We could use a flag instead of map type but we are running out of > flags. There are 1,000s of map types available.
How about a new driver private flag instead of a map type? _DRM_PRIVATE = 0x80 /**< Driver private mapping */ That is more generic than doing something specific for x video. Drivers using this will expose two maps of type DRM_SHM. The public one will be sarea and the private one will be driver specific. For backward compatibility the bit is clear for the public sarea map. When doing GetMap from user space the loop will need to take into account multiple maps of the same type and then differentiate on the flags. -- Jon Smirl [EMAIL PROTECTED] ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel