Mesa (master): llvmpipe: s/boolean/unsigned/ in bitfield to silence warning

Brian Paul brianp at kemper.freedesktop.org
Wed Sep 15 12:57:21 PDT 2010


Module: Mesa
Branch: master
Commit: 3085efabb18f76f369249fe1ad85665a5f9d1a60
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3085efabb18f76f369249fe1ad85665a5f9d1a60

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Sep 15 12:49:11 2010 -0600

llvmpipe: s/boolean/unsigned/ in bitfield to silence warning

Using non-int types for bitfields is a gcc extension.
The size of the struct is not effected by this change.

---

 src/gallium/drivers/llvmpipe/lp_rast.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index 5767667..c55b97a 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -79,8 +79,8 @@ struct lp_rast_state {
  */
 struct lp_rast_shader_inputs {
    float facing;     /** Positive for front-facing, negative for back-facing */
-   boolean disable:1;  /** Partially binned, disable this command */
-   boolean opaque:1;   /** Is opaque */
+   unsigned disable:1;  /** Partially binned, disable this command */
+   unsigned opaque:1;   /** Is opaque */
 
    float (*a0)[4];
    float (*dadx)[4];



More information about the mesa-commit mailing list