i915: Fix build error.
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 8 Apr 2014 07:27:18 +0000 (09:27 +0200)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 07:29:59 +0000 (00:29 -0700)
is_power_of_two() is now provided by mesa so its definition must be removed
from the i915 driver code.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i915/intel_context.h

index 94960f6..fccf821 100644 (file)
@@ -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