On Wed, 9 Mar 2005 22:55:04 +1100, Paul Mackerras <[EMAIL PROTECTED]> wrote: > Here is a patch that adds 32-bit ioctl compatibility code to the CVS > DRM (i.e. the drm CVS module at dri.freedesktop.org). > > I have taken a different approach to the problem of 32-bit map handles > this time. I only generate a fake 32-bit handle for _DRM_SHM mappings > as before, but now I put the 32-bit handle in map->offset for those > mappings (previously map->offset and map->handle were the same for > _DRM_SHM mappings). This simplifies the code quite a bit.
I built this against CVS DRM and a recent -bk kernel (just prior to 2.6.12-rc1) on amd64. I had to merge support for the recent agp bridge changes into the CVS DRM, but I don't think that should have affected the ioctl32 bits. Setup: Distro: Debian unstable pure64 Graphics card: radeon9200 Kernel: -bk snapshot from just before 2.6.12-rc1 (plus cvs drm, plus the above patch) X server used in tests: Xorg 6.8.2 Results: 64-bit direct rendering clients are still quite happy with this patch. I've tested this with the libGL.so and r200_dri.so from Xorg 6.8.2 and with those from the debian XFree86 4.3 package. At some point soon, I'll make sure to actually run the XFree86 4.3 server and test that too. 32-bit direct rendering clients are also happy when run under a 32-bit X server. I've only tested the Xorg 6.8.2 server in 32-bit mode, however. I'll try and test the old 4.3 server sometime this week. -- Will Dyson ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel