OSDN Git Service

nv50: ensure enough room for state changes in current pushbuf
authorBen Skeggs <bskeggs@redhat.com>
Wed, 3 Mar 2010 04:43:21 +0000 (14:43 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Mar 2010 06:29:58 +0000 (16:29 +1000)
commite1d015fe222a3f6f942426c39fb1a17188df8d57
tree393856ee4899e39b1e0b27f5dbd3582c516c8b0f
parent62ab89785b55e60b978dc2b32995676859299c80
nv50: ensure enough room for state changes in current pushbuf

Also allows the nv50_state_validate() caller to request a minimum amount
of space that itself requires, not all callers accurately use this yet
but the simple cases are now accounted for.

Rendering will also be dropped on the floor if validate fails now.
src/gallium/drivers/nv50/nv50_clear.c
src/gallium/drivers/nv50/nv50_context.h
src/gallium/drivers/nv50/nv50_state_validate.c
src/gallium/drivers/nv50/nv50_vbo.c