Ian Romanick wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Keith Whitwell wrote:


   - functionality required by libdrm is made available as
device-independent ioctls


When I was originally spec'ing a bunch of this stuff out, it was my
intention to add a couple device-independent ioctls to roughly match
NV_fence.  My thought was that the easiest way to do it was by adding
two functions in libdrm:

        int drmSetFence( int fd, drm_fence_id * fence );
        int drmCheckFence( int fd, const drm_fence_id * target_fence,
                           drm_fence_id * last_fence, int can_block );

drmCheckFence is a combination glTestFenceNV / glFinishFenceNV.  The
most recently completed fence is returned in last_fence.

It should be trivial in the kernel to connect the device-independent
ioctls to whatever these existing device-dependent functionality is.

Yes, that seems to be the best approach.

The only wrinkle is that if you're doing fences, it'd be nice to have a regularly updated completed fence id in the device independent sarea, which is currently full. So maybe a new shared area is needed.

Keith


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to