i965: Move some helpers from brw_context.h to brw_shader.h