intel_upload_data() uses <, while intel_upload_map() uses <=. Otherwise, the two blocks of code are identical. This appears to be a typo; we should be able to stage the exact amount of data that will fit in the staging buffer.
Signed-off-by: Kenneth Graunke <kenn...@whitecape.org> --- src/mesa/drivers/dri/i965/intel_upload.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_upload.c b/src/mesa/drivers/dri/i965/intel_upload.c index f6342c9..3abc314 100644 --- a/src/mesa/drivers/dri/i965/intel_upload.c +++ b/src/mesa/drivers/dri/i965/intel_upload.c @@ -159,7 +159,7 @@ intel_upload_data(struct brw_context *brw, brw->upload.buffer_len = 0; } - if (size < sizeof(brw->upload.buffer)) { + if (size <= sizeof(brw->upload.buffer)) { /* The new data is small enough to fit in the staging buffer, so * stage it to be copied to the BO later. */ -- 1.9.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev