Thomas Hellström wrote: > Kristian, > > As we're starting to incorporate dri2 in our code, I've run into some > major concerns about the sarea and the event mechanisms: > > 1) The SAREA is likely to be used by mixed 32-bit / 64 -bit clients and > servers. (If I understand things correctly, the kernel never accesses > the SAREA). However the sarea structs are safe against this. The layout > of the sarea structures should must be identcal, and one should probably > use the fixed size types (uint64_t, uint32_t etc.) and be very careful > with alignment. >
This should really read 1) The SAREA is likely to be used by mixed 32-bit / 64 -bit clients and servers. (If I understand things correctly, the kernel never accesses the SAREA). However the sarea structs are _not_ safe against this. The layout of the sarea structures must be identical for 32- and 64-bit clients, and one should probably use the fixed size types (uint64_t, uint32_t etc.) and be very careful with alignment. Cheers, /Thomas ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel