[Mesa-dev] [PATCH 2/2] gallium: don't use enum bitfields in p_video_state.h

Brian Paul brianp at vmware.com
Wed Jul 13 15:28:17 PDT 2011


Silences many warnings about "type of bit-field ‘field_select’ is a
GCC extension".
---
 src/gallium/include/pipe/p_video_state.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gallium/include/pipe/p_video_state.h b/src/gallium/include/pipe/p_video_state.h
index 5b47b15..1f42ac5 100644
--- a/src/gallium/include/pipe/p_video_state.h
+++ b/src/gallium/include/pipe/p_video_state.h
@@ -49,8 +49,8 @@ struct pipe_motionvector
 {
    struct {
       signed x:16, y:16;
-      enum pipe_video_field_select field_select:16;
-      enum pipe_video_mv_weight weight:16;
+      unsigned field_select:16; /**< enum pipe_video_field_select */
+      unsigned weight:16;  /**< enum pipe_video_mv_weight  */
    } top, bottom;
 };
 
@@ -58,8 +58,8 @@ struct pipe_motionvector
 struct pipe_ycbcr_block
 {
    unsigned x:8, y:8;
-   enum pipe_mpeg12_dct_intra intra:8;
-   enum pipe_mpeg12_dct_type coding:8;
+   unsigned intra:8;  /**< enum pipe_mpeg12_dct_intra */
+   unsigned coding:8; /**< enum pipe_mpeg12_dct_type */
 };
 
 struct pipe_picture_desc
-- 
1.7.3.4



More information about the mesa-dev mailing list