diff options
author | Ben Skeggs <[email protected]> | 2008-03-24 13:45:38 +1100 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2008-03-24 13:45:38 +1100 |
commit | 5ce37d42b3268102caf8225be4ca18418bfab7c4 (patch) | |
tree | 3dab29fe7dea15a5f1a477bb897aeeec21653f78 /src/gallium/drivers/nv40/nv40_state_emit.c | |
parent | 799d3bce06e998e51ad8df6bcadeb41bd061801e (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.c | 8 |
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 056238cc836..a9a9abc9220 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; |