Re: [PATCH 3/5] wined3d: Use bitfields in struct arbfp_blit_type.
30 Mar
2015
30 Mar
'15
4:09 a.m.
On 28 March 2015 at 17:06, Stefan Dösinger <stefan(a)codeweavers.com> wrote:
struct arbfp_blit_type { - enum complex_fixup fixup; - GLenum textype; + enum complex_fixup fixup : 4; + enum wined3d_ffp_texture_type textype : 3; + unsigned padding : 1; };
I don't keep a very close eye on arb_program_shader.c, but I suspect this doesn't quite do what you think it does. The structure is going to get aligned to the alignment of the largest scalar field (which would be 32 bits in this case because of enum/unsigned), so you'll have another 24 bits of padding after the "padding" field.
3907
Age (days ago)
3907
Last active (days ago)
0 comments
1 participants
participants (1)
-
Henri Verbeet