[Mesa-dev] [PATCH] i915: Fix build error.

Iago Toral Quiroga itoral at igalia.com
Tue Apr 8 00:27:18 PDT 2014


is_power_of_two() is now provided by mesa so its definition must be removed
from the i915 driver code.
---
 src/mesa/drivers/dri/i915/intel_context.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/intel_context.h b/src/mesa/drivers/dri/i915/intel_context.h
index 94960f6..fccf821 100644
--- a/src/mesa/drivers/dri/i915/intel_context.h
+++ b/src/mesa/drivers/dri/i915/intel_context.h
@@ -504,12 +504,6 @@ intel_context(struct gl_context * ctx)
    return (struct intel_context *) ctx;
 }
 
-static INLINE bool
-is_power_of_two(uint32_t value)
-{
-   return (value & (value - 1)) == 0;
-}
-
 #ifdef __cplusplus
 }
 #endif
-- 
1.8.3.2



More information about the mesa-dev mailing list