main/cs: Implement front end code for glDispatchCompute().