#include "sp_quad.h"
#include "tgsi/core/tgsi_core.h"
+#if 0
#if defined __GNUC__
#define ALIGNED_ATTRIBS 1
#else
#define ALIGNED_ATTRIBS 0
#endif
+#else
+#define ALIGNED_ATTRIBS 0
+#endif
struct exec_machine {
const struct setup_coefficient *coef; /**< will point to quad->coef */
/* load input registers */
for (i = 0; i < softpipe->nr_attrs; i++) {
+#if 0
/* Make sure fp_attr_to_slot[] is an identity transform. */
assert( softpipe->fp_attr_to_slot[i] == i );
&ainputs[i],
exec.attr[i],
sizeof( ainputs[0] ) );
+#else
+ memcpy(
+ &ainputs[i],
+ exec.attr[softpipe->fp_attr_to_slot[i]],
+ sizeof( ainputs[0] ) );
+#endif
}
#endif