[Intel-gfx] drm/i915: execbuf2 support

Eric Anholt eric at anholt.net
Mon Dec 21 08:40:49 CET 2009


On Thu, 17 Dec 2009 22:05:42 -0500, Kristian Høgsberg <krh at bitplanet.net> wrote:
> From: Chris Wilson <chris at chris-wilson.co.uk>
> 
> From: Jesse Barnes <jbarnes at virtuousgeek.org>
> 
> This patch adds a new execbuf ioctl, execbuf2, for use by clients that
> want to control fence register allocation more finely.  The buffer
> passed in to the new ioctl includes a new relocation type to indicate
> whether a given object needs a fence register assigned for the command
> buffer in question.
> 
> Compatibility with the existing execbuf ioctl is implemented in terms
> of the new code, preserving the assumption that fence registers are
> required for pre-965 rendering commands.
> 
> Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
> [ickle: Remove pre-emptive clear_fence_reg()]
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>
> 
> ---
> 
> Update: previous version(*) of this would alloc the exec_list in
> i915_gem_do_execbuffer() and overwrite the passed in exec_list arg.
> The code that copies the exec_list from userspace was removed as it
> should be, but the code to allocate the list was still there.
> 
> Briefly tested: X comes up and runs GNOME and Mesa works.
> 
> (*) http://patchwork.kernel.org/patch/64032

OK, after fixing up the dmesg spam that got introduced and testing on
945gm and gm45, I've pushed it to drm-intel-next.  I'll try to get it
into this kernel.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/intel-gfx/attachments/20091220/89771a60/attachment.sig>


More information about the Intel-gfx mailing list