mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
965: fix vb upload size check
This commit is contained in:
parent
e149e1b953
commit
e92e3848e7
1 changed files with 5 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue