[PATCH] r600: Initial support

This includes a get_global_id() implementation and function stubs for
the other workitem and synchronization functions.