mirror of
https://src.fedoraproject.org/rpms/mesa.git
synced 2024-12-01 12:10:53 +00:00
75c2c8ea2b
- disable classic warning to avoid people reporting it.
38 lines
1.4 KiB
Diff
38 lines
1.4 KiB
Diff
commit 17adf04e5c1da72a51815f3fdb9de2f3a8149c1a
|
|
Author: Dave Airlie <airlied@panoply-rh.(none)>
|
|
Date: Tue May 6 18:52:47 2008 +1000
|
|
|
|
i965: fix googleearth in classic mode.
|
|
|
|
In classic mode googleearth triggered a case where vbos weren't getting accounted properly.
|
|
|
|
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
|
|
index aa985d6..2d99238 100644
|
|
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
|
|
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
|
|
@@ -404,6 +404,7 @@ int brw_prepare_vertices( struct brw_context *brw,
|
|
*/
|
|
copy_array_to_vbo_array(brw, upload[0], interleave);
|
|
|
|
+ ret |= dri_bufmgr_check_aperture_space(upload[0]->bo);
|
|
for (i = 1; i < nr_uploads; i++) {
|
|
/* Then, just point upload[i] at upload[0]'s buffer. */
|
|
upload[i]->stride = interleave;
|
|
@@ -416,13 +417,13 @@ int brw_prepare_vertices( struct brw_context *brw,
|
|
else {
|
|
/* Upload non-interleaved arrays */
|
|
for (i = 0; i < nr_uploads; i++) {
|
|
- copy_array_to_vbo_array(brw, upload[i], upload[i]->element_size);
|
|
+ copy_array_to_vbo_array(brw, upload[i], upload[i]->element_size);
|
|
+ if (upload[i]->bo) {
|
|
+ ret |= dri_bufmgr_check_aperture_space(upload[i]->bo);
|
|
+ }
|
|
}
|
|
}
|
|
|
|
- if (brw->vb.upload.bo) {
|
|
- ret |= dri_bufmgr_check_aperture_space(brw->vb.upload.bo);
|
|
- }
|
|
|
|
if (ret)
|
|
return 1;
|