Mesa (gallium-winsys-private): nv20: set surface status in clear()
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Feb 2 11:41:32 UTC 2009
Module: Mesa
Branch: gallium-winsys-private
Commit: 5e96feed379c89e71834f372af6ba92098874d63
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5e96feed379c89e71834f372af6ba92098874d63
Author: Pekka Paalanen <pq at iki.fi>
Date: Sat Jan 31 14:34:15 2009 +0200
nv20: set surface status in clear()
Other nvXX drivers seem to do this, so I do it too.
Signed-off-by: Pekka Paalanen <pq at iki.fi>
---
src/gallium/drivers/nv20/nv20_clear.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/nv20/nv20_clear.c b/src/gallium/drivers/nv20/nv20_clear.c
index 81b6f3e..29f4afd 100644
--- a/src/gallium/drivers/nv20/nv20_clear.c
+++ b/src/gallium/drivers/nv20/nv20_clear.c
@@ -9,4 +9,5 @@ nv20_clear(struct pipe_context *pipe, struct pipe_surface *ps,
unsigned clearValue)
{
pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);
+ ps->status = PIPE_SURFACE_STATUS_CLEAR;
}
More information about the mesa-commit
mailing list