diff options
author | Christoph Bumiller <[email protected]> | 2011-08-27 20:49:36 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-08-30 13:55:07 +0200 |
commit | 222b3ea653e5525a4afa57e6a2353335953012d4 (patch) | |
tree | a0a296f28409108acfdd6830fbc8aefb0e1f55bb /src/gallium/drivers/nvc0/nvc0_context.h | |
parent | 9f4998639c3c47f0b7ee3e2a29b7f3609d3f7796 (diff) |
nv50,nvc0: add states mask to state validation function
This prevents null dereferences in validation of interdependent
state after a switch to a pipe context where we mark all state
as dirty but where not all state is valid / set yet.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_context.h')
-rw-r--r-- | src/gallium/drivers/nvc0/nvc0_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_context.h b/src/gallium/drivers/nvc0/nvc0_context.h index bf891649a57..aa50df076b1 100644 --- a/src/gallium/drivers/nvc0/nvc0_context.h +++ b/src/gallium/drivers/nvc0/nvc0_context.h @@ -179,7 +179,8 @@ void nvc0_tfb_validate(struct nvc0_context *); extern void nvc0_init_state_functions(struct nvc0_context *); /* nvc0_state_validate.c */ -extern boolean nvc0_state_validate(struct nvc0_context *); +extern boolean nvc0_state_validate(struct nvc0_context *, uint32_t state_mask, + unsigned space_words); /* nvc0_surface.c */ extern void nvc0_clear(struct pipe_context *, unsigned buffers, |