diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-03-03 14:43:21 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-03-10 16:29:58 +1000 |
commit | e1d015fe222a3f6f942426c39fb1a17188df8d57 (patch) | |
tree | 393856ee4899e39b1e0b27f5dbd3582c516c8b0f /src/gallium/drivers/nv50/nv50_clear.c | |
parent | 62ab89785b55e60b978dc2b32995676859299c80 (diff) |
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.
Diffstat (limited to 'src/gallium/drivers/nv50/nv50_clear.c')
-rw-r--r-- | src/gallium/drivers/nv50/nv50_clear.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/nv50_clear.c b/src/gallium/drivers/nv50/nv50_clear.c index e0b2d2880b..8afc95c9fc 100644 --- a/src/gallium/drivers/nv50/nv50_clear.c +++ b/src/gallium/drivers/nv50/nv50_clear.c @@ -36,7 +36,7 @@ nv50_clear(struct pipe_context *pipe, unsigned buffers, struct pipe_framebuffer_state *fb = &nv50->framebuffer; unsigned mode = 0, i; - if (!nv50_state_validate(nv50)) + if (!nv50_state_validate(nv50, 64)) return; if (buffers & PIPE_CLEAR_COLOR && fb->nr_cbufs) { |