aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@panoply-rh.(none)>2008-04-18 15:09:11 +1000
committerDave Airlie <airlied@panoply-rh.(none)>2008-04-18 15:09:46 +1000
commite92e3848e7c8c1481e785973d8609072f2f5db21 (patch)
tree99ca10b74d64564ed86d2beabff87104f0960315 /src/mesa/drivers
parente149e1b953bccdf735665547798574e06f989730 (diff)
965: fix vb upload size check
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_draw_upload.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 9f780bcb97c..78677df6c0a 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -418,9 +418,11 @@ int brw_prepare_vertices( struct brw_context *brw,
}
}
- ret = dri_bufmgr_check_aperture_space(brw->vb.upload.bo);
- if (ret)
- return 1;
+ if (brw->vb.upload.bo) {
+ ret = dri_bufmgr_check_aperture_space(brw->vb.upload.bo);
+ if (ret)
+ return 1;
+ }
return 0;
}