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 94960f6bc23e211f8d58d8f49f0376fe34c953f4..fccf821993d555932b229fd56b36e4126c05fbfc 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