[Intel-gfx] [PATCH] intel: Add support for (possibly) unsynchronized maps.
paulepanter at users.sourceforge.net
Sat Feb 25 01:03:18 PST 2012
Am Freitag, den 24.02.2012, 19:53 -0800 schrieb Eric Anholt:
> + * Performs a mapping of the buffer object like the normal GTT
> + * mapping, but avoiding waiting for the GPU to be done reading from
> + * or rendering to the buffer.
> + *
> + * This is used in the implementation of GL_ARB_map_buffer_range: The
> + * user asks to create a buffer, then does a mapping, fills some
> + * space, runs a drawing command, then asks to map it again without
> + * synchronizing because it guarantees that it won't write over the
> + * data that the GPU is busy using (or, more specifically, that if it
> + * does write over the data, it acknowledges that rendering is
> + * undefined).
> + */
> +int drm_intel_gem_bo_map_unsynchronized(drm_intel_bo *bo)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: This is a digitally signed message part
More information about the Intel-gfx