PBO 16 Byte alignment?

Hi there,

is there a way to force a PBO to allocate on 16 byte alignment? I´d like to use _mm_store_ps to store the data in it but the alignment of the PBO is random (or 8 byte aligned only), so I need to use the slower _mm_storeu_ps which I would like to avoid.

Any ideas?

Allocate 16 bytes more and align yourself.
Then use offset parameter in OpenGL API.

Side note: _mm_stream_ps might be slightly faster than _mm_store_ps. (Avoids cache pollution when writing)