gallium: notify drivers about possible changes in user buffer contents

Also implement the redefine_user_buffer hook in the drivers.
This commit is contained in:
Marek Olšák
2011-02-09 01:10:11 +01:00
parent 2a904fd6a0
commit 588fa884d2
26 changed files with 182 additions and 6 deletions

View File

@@ -392,6 +392,22 @@ be flushed on write or unmap. Flushes must be requested with
``transfer_flush_region``. Flush ranges are relative to the mapped range, not
the beginning of the resource.
.. _redefine_user_buffer:
redefine_user_buffer
%%%%%%%%%%%%%%%%%%%%
This function notifies a driver that the user buffer content has been changed.
The updated region starts at ``offset`` and is ``size`` bytes large.
The ``offset`` is relative to the pointer specified in ``user_buffer_create``.
While uploading the user buffer, the driver is allowed not to upload
the memory outside of this region.
The width0 is redefined to ``MAX2(width0, offset+size)``.
.. _pipe_transfer:
PIPE_TRANSFER