summaryrefslogtreecommitdiff
path: root/src/mesa/main/ffvertex_prog.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-11-18 03:05:14 -0800
committerEric Anholt <eric@anholt.net>2009-11-19 11:47:21 +0100
commit15fa484f514726a29bbf24df33c0551844f878d0 (patch)
tree7ab97af3625cccdc2720a7351ad5d39bae4a5477 /src/mesa/main/ffvertex_prog.c
parent92d35b91f132deda1fb27d2071a50e8187301fe5 (diff)
mesa: Remove gratuitous padding in prog_dst_register.
The padding was there to indicate the amount of space left from the number of expected bytes in the struct minus allocated bits. But uint bitfields get packed so that they don't cross uint boundaries, and we ended up allocating an extra dword to hold the pad field!
Diffstat (limited to 'src/mesa/main/ffvertex_prog.c')
-rw-r--r--src/mesa/main/ffvertex_prog.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c
index fe2416d894..5cfa898031 100644
--- a/src/mesa/main/ffvertex_prog.c
+++ b/src/mesa/main/ffvertex_prog.c
@@ -523,7 +523,6 @@ static void emit_dst( struct prog_dst_register *dst,
dst->CondMask = COND_TR; /* always pass cond test */
dst->CondSwizzle = SWIZZLE_NOOP;
dst->CondSrc = 0;
- dst->pad = 0;
/* Check that bitfield sizes aren't exceeded */
ASSERT(dst->Index == reg.idx);
}