gallium: add some #if FEATURE_x tests