diff options
author | Michal Krol <[email protected]> | 2010-01-06 11:23:43 +0100 |
---|---|---|
committer | Michal Krol <[email protected]> | 2010-01-06 16:11:21 +0100 |
commit | 955f51270bb60ad77dba049799587dc7c0fb4dda (patch) | |
tree | 2536fe01e94da4f4aa3ed2006a26ebec6ba34f4a /src/gallium/drivers | |
parent | 1b5476a353d9772fe86d02f0a733a55f9cf0ea76 (diff) |
Make sure we use only signed/unsigned ints with bitfields.
Seems to be the only way to stay fully portable.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/svga/svga_tgsi.h | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/gallium/drivers/svga/svga_tgsi.h b/src/gallium/drivers/svga/svga_tgsi.h index 896c90a89ae..1309c339237 100644 --- a/src/gallium/drivers/svga/svga_tgsi.h +++ b/src/gallium/drivers/svga/svga_tgsi.h @@ -39,26 +39,24 @@ struct tgsi_token; struct svga_vs_compile_key { - ubyte need_prescale:1; - ubyte allow_psiz:1; unsigned zero_stride_vertex_elements; - ubyte num_zero_stride_vertex_elements:6; + unsigned need_prescale:1; + unsigned allow_psiz:1; + unsigned num_zero_stride_vertex_elements:6; }; struct svga_fs_compile_key { - boolean light_twoside:1; - boolean front_cw:1; - ubyte num_textures; - ubyte num_unnormalized_coords; + unsigned light_twoside:1; + unsigned front_cw:1; + unsigned num_textures:8; + unsigned num_unnormalized_coords:8; struct { - ubyte compare_mode : 1; - ubyte compare_func : 3; - ubyte unnormalized : 1; - - ubyte width_height_idx : 7; - - ubyte texture_target; + unsigned compare_mode:1; + unsigned compare_func:3; + unsigned unnormalized:1; + unsigned width_height_idx:7; + unsigned texture_target:8; } tex[PIPE_MAX_SAMPLERS]; }; |