Maximum packings in tripartite graphs