OSDN Git Service

i915g: Make sure that new vbo gets updated
authorJakob Bornecrantz <wallbraker@gmail.com>
Mon, 29 Nov 2010 19:53:26 +0000 (20:53 +0100)
committerJakob Bornecrantz <wallbraker@gmail.com>
Thu, 2 Dec 2010 00:34:14 +0000 (01:34 +0100)
commitde3ff5af49369d187d88e5399f388c6e48c5384f
tree502fba325dde95bfa33a5e888bbd6754369bcd70
parent442e567aa0f0cf91cbd30ffdfc74d281d619dd5e
i915g: Make sure that new vbo gets updated

Malloc likes to reuse old address as soon as possible this would cause the
new vbo buffer to get the same address as the old. So make sure we set it to
NULL when we allocate a new one. This fixes ipers which will fill up a couple
of VBO buffers per frame.

Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
src/gallium/drivers/i915/TODO
src/gallium/drivers/i915/i915_prim_vbuf.c