mesa: Move is_power_of_two() function from brw_context.h to macros.h.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 7 Apr 2014 00:29:48 +0000 (17:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Apr 2014 07:01:51 +0000 (00:01 -0700)
commitbd69f65f90ecfa45e43a72504d277cb39f00e1c1
tree59461815405bedf50196ba55f0fc4546711d5887
parent6bda3a526759f655cad62178b491264584119ae1
mesa: Move is_power_of_two() function from brw_context.h to macros.h.

This makes the function available from core Mesa code, including the
GLSL compiler.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/main/macros.h