mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
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!
This commit is contained in:
parent
92d35b91f1
commit
15fa484f51
3 changed files with 0 additions and 3 deletions
|
|
@ -138,7 +138,6 @@ static struct prog_dst_register dst_reg(GLuint file, GLuint idx)
|
|||
reg.CondMask = COND_TR;
|
||||
reg.CondSwizzle = 0;
|
||||
reg.CondSrc = 0;
|
||||
reg.pad = 0;
|
||||
return reg;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -312,7 +312,6 @@ struct prog_dst_register
|
|||
*/
|
||||
GLuint CondSrc:1;
|
||||
/*@}*/
|
||||
GLuint pad:28;
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue