[Mesa-dev] [PATCH V2 00/17] Newbie Project : Enable ARB_map_buffer_alignment in all drivers

Eric Anholt eric at anholt.net
Tue Dec 3 10:44:44 PST 2013


Siavash Eliasi <siavashserver at gmail.com> writes:

> Hello, this is V2 series of patches to accomplish *Enable
> ARB_map_buffer_alignment in all drivers* newbie project suggested by
> Ian Romanick.

I think there's a piece missing to this, which is this bit of spec text:

    "If no error occurs, the pointer value returned by MapBufferRange must
    reflect an allocation aligned to the value of MIN_MAP_BUFFER_ALIGNMENT
    basic machine units.  Subtracting <offset> basic machine units from the
    returned pointer will always produce a multiple of the value of
    MIN_MAP_BUFFER_ALIGNMENT."

In i965's intel_bufferobj_map_range, range_map_bo or range_map_buffer
mappings won't have that alignment.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20131203/5c468188/attachment.pgp>


More information about the mesa-dev mailing list