summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authormichal <michal@michal-laptop.(none)>2007-08-06 17:04:34 +0100
committermichal <michal@michal-laptop.(none)>2007-08-06 17:04:34 +0100
commit555ff452602fc572420b590eac690d2e3849ca3c (patch)
treed8d49c8170ad8b38725646d6c5daa263cedad762 /src/mesa
parent1d45082f6e8fb2416fd37f6f1fa48fc21576cd1d (diff)
Use fp_attr_to_slot[].
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/pipe/softpipe/sp_quad_fs.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_quad_fs.c b/src/mesa/pipe/softpipe/sp_quad_fs.c
index 1676d47d51b..66513bb4369 100644
--- a/src/mesa/pipe/softpipe/sp_quad_fs.c
+++ b/src/mesa/pipe/softpipe/sp_quad_fs.c
@@ -39,11 +39,15 @@
#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 */
@@ -229,6 +233,7 @@ shade_quad( struct quad_stage *qs, struct quad_header *quad )
/* 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 );
@@ -236,6 +241,12 @@ shade_quad( struct quad_stage *qs, struct quad_header *quad )
&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