r600g: cache shader variants instead of rebuilding v3