summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nv40/nv40_state_emit.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-03-24 13:45:38 +1100
committerBen Skeggs <skeggsb@gmail.com>2008-03-24 13:45:38 +1100
commit5ce37d42b3268102caf8225be4ca18418bfab7c4 (patch)
tree3dab29fe7dea15a5f1a477bb897aeeec21653f78 /src/gallium/drivers/nv40/nv40_state_emit.c
parent799d3bce06e998e51ad8df6bcadeb41bd061801e (diff)
nv40: maintain pipe_surface status field
Diffstat (limited to 'src/gallium/drivers/nv40/nv40_state_emit.c')
-rw-r--r--src/gallium/drivers/nv40/nv40_state_emit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv40/nv40_state_emit.c b/src/gallium/drivers/nv40/nv40_state_emit.c
index 056238cc83..a9a9abc922 100644
--- a/src/gallium/drivers/nv40/nv40_state_emit.c
+++ b/src/gallium/drivers/nv40/nv40_state_emit.c
@@ -40,6 +40,14 @@ static void
nv40_state_do_validate(struct nv40_context *nv40,
struct nv40_state_entry **states)
{
+ const struct pipe_framebuffer_state *fb = &nv40->framebuffer;
+ unsigned i;
+
+ for (i = 0; i < fb->num_cbufs; i++)
+ fb->cbufs[i]->status = PIPE_SURFACE_STATUS_DEFINED;
+ if (fb->zsbuf)
+ fb->zsbuf->status = PIPE_SURFACE_STATUS_DEFINED;
+
while (*states) {
struct nv40_state_entry *e = *states;