Keith Whitwell wrote:
Is there any rational for the 512 byte alignment in this macro?

This is used to allocate main-memory copies of texture images, so the numbers add up pretty quickly...

I can't think of any reason to go beyond 16 or at most 32 byte alignment from a cpu/caching perspective, and these buffers aren't visible to hardware (which can have more stringent requirements).
I think that Gerk found a small performance improvement with a 512-
byte alignment. But since he provided the macros that are used for
texture allocation he could override whatever default alignment is used.

Feel free to reduce or remove the alignment.

-Brian



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel


Reply via email to