[Mesa-dev] [PATCH 7/8] i965/drm: Use bools for a few flags.

Kenneth Graunke kenneth at whitecape.org
Tue Apr 11 16:02:50 UTC 2017


These one bit values are booleans.
---
 src/mesa/drivers/dri/i965/brw_bufmgr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index 7f2aa9d85ec..8dda38d1262 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
@@ -109,8 +109,8 @@ struct brw_bufmgr {
    struct hash_table *name_table;
    struct hash_table *handle_table;
 
-   unsigned int has_llc:1;
-   unsigned int bo_reuse:1;
+   bool has_llc:1;
+   bool bo_reuse:1;
 };
 
 static int bo_set_tiling_internal(struct brw_bo *bo, uint32_t tiling_mode,
-- 
2.12.1



More information about the mesa-dev mailing list