View Full Version : Setting DX Surface Memory Alignment?
20th April 2005, 10:54 PM
I've been trying to figure out how to align DX surfaces to 16-byte boundaries to help expediate SSE operations. Anyone here have any hints/tips?
21st April 2005, 01:37 AM
Hey Esotic i would try asking your question in the programming forum on beyond3d [ www.beyond3d.com
i Imagin you will get a much better selection of responses and a better quality of responses there :)
21st April 2005, 02:04 PM
thanks for the tip
21st April 2005, 02:22 PM
There is one caveat when using compilers other than Microsoft Vi-
sual Studio.Net. The Direct3D Extension Library (D3DX) contains sup-
port for Intel Streaming SIMD Extensions (SSE) instructions, but only
when compiled with Microsoft Visual Studio.Net (Microsoft Visual C++
7.0 or greater, to be specific).
This is because support for 16-byte aligned
memory allocations was not supported under earlier versions of Visual
C++ without the installation of an additional patch, known as the proces-
sor pack. Because the 16-byte alignment is a critical requirement of many
SSE memory-access instructions, these instructions are not enabled
within D3DX unless compiler support for aligned memory allocations can
be guaranteed. Since the presence of the processor pack cannot be de-
tected, the Intel SSE-aware code within the D3DX library is not enabled
unless the preprocessor definition identifying Microsoft Visual C++ com-
pilers is set to denote version 7.0 or higher.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.