--- Felix Kühling <[EMAIL PROTECTED]> wrote: > On Tue, 16 Mar 2004 16:31:37 -0800 > Ian Romanick <[EMAIL PROTECTED]> wrote: > > > I spent some time today pulling the DRI interface structures and > > function prototypes out of glxclient.h. I came across one snag > that I > > missed before. It turns out that the bindContext2 and > unbindContext2 > > methods in __DRIcontextRec are passed pointers to GLXContext > structures. > > I don't think that is the right division. unbindContext2 only > uses > > the GLXContext to get a pointer to the __DRIcontextRec. > bindContext2 > > does the same, but it also uses the GLXContext to get the > > __GLcontextModes structure for the context (when > DRI_NEW_INTERFACE_ONLY > > is defined). > > > > It should only take a little work to remove the usage of > 'gc->modes'. > > When that is done, bindContext2 and unbindContext2 could be passed > a > > pointer to the __DRIcontextRec. I think this is the right thing to > do. > > > > The only problem is that it would break binary compatibility with > > XFree86 4.4.0. :( So, it looks like I get to add yet another > > entry-point to __DRIcontextRec because I couldn't get things right > the > > Nth time. :( > > > > There also seem to be some issues with drivers using CARD32. That > type > > comes from X, so it should probably be replaced with something > > window-system agnostic. Would int32_t work for everyone? > > Hmm, the savage driver uses GLuint when it actually means a 32 bit > word > in the register definitions. Where does int32_t come from? Would it > be > the right type to use in that case? Is there also a uint32_t? > > I guess this only matters for non-x86 architectures. I'm not sure if > there are savages for non-x86? I never heard of any.
No, but I suppose there is nothing stopping you from plugging one into an alpha or ppc board, not that anyone has tried it. I suspect it would need some fixes for big endian though. the BD's have an endian bit and there is some big endian code commented out in the Xv code. Alex > > Felix > > > __________________________________ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click -- _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel