nouveau: do a retry if initial buffer alloc fails

This commit is contained in:
Ben Skeggs
2008-03-21 18:28:07 +11:00
parent 83e94189c4
commit 1a4dcde808
+7 -2
View File
@@ -369,8 +369,13 @@ nouveau_bo_validate_bo(struct nouveau_channel *chan, struct nouveau_bo *bo,
int ret;
ret = nouveau_bo_set_status(bo, flags);
if (ret)
return ret;
if (ret) {
nouveau_fence_flush(chan);
ret = nouveau_bo_set_status(bo, flags);
if (ret)
return ret;
}
if (nvbo->user)
nouveau_bo_upload(nvbo);