mesa: Move is_power_of_two() function from brw_context.h to macros.h.