intel: Don't try to do work for BufferSubData with a size of 0.
authorEric Anholt <eric@anholt.net>
Fri, 20 Aug 2010 19:36:34 +0000 (12:36 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 20 Aug 2010 19:36:34 +0000 (12:36 -0700)
commit27e6552a8fb0fd49be84fbaf9504e8371033db23
tree1bd4a99619a188e393f1d7a5dda39ac7e9e5d4e8
parent5482eaba6ecd4a581377336b6409019adf67869e
intel: Don't try to do work for BufferSubData with a size of 0.

If we hit the linear blit path, we'd come up with a pitch of 0, then
divide by zero.

Fixes vbo-subdata-zero, made for bug #28931 (warsow).
src/mesa/drivers/dri/intel/intel_buffer_objects.c