diff options
author | Patrice Mandin <[email protected]> | 2008-06-23 21:46:51 +0200 |
---|---|---|
committer | Patrice Mandin <[email protected]> | 2008-06-23 21:46:51 +0200 |
commit | 95fe122f67024f55d555e2816a95409a8b53a49e (patch) | |
tree | 2ac913c8ccc383198560015cadd26df3838a24be /src/gallium/drivers/nv30/nv30_state_zsa.c | |
parent | 0e1b36b0b257bfba4427a1e6e12c918e744b9977 (diff) |
nv30: add state zsa, based on nv40 one
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_state_zsa.c')
-rw-r--r-- | src/gallium/drivers/nv30/nv30_state_zsa.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/gallium/drivers/nv30/nv30_state_zsa.c b/src/gallium/drivers/nv30/nv30_state_zsa.c new file mode 100644 index 00000000000..0940b7269b2 --- /dev/null +++ b/src/gallium/drivers/nv30/nv30_state_zsa.c @@ -0,0 +1,17 @@ +#include "nv30_context.h" + +static boolean +nv30_state_zsa_validate(struct nv30_context *nv30) +{ + so_ref(nv30->zsa->so, + &nv30->state.hw[NV30_STATE_ZSA]); + return TRUE; +} + +struct nv30_state_entry nv30_state_zsa = { + .validate = nv30_state_zsa_validate, + .dirty = { + .pipe = NV30_NEW_ZSA, + .hw = NV30_STATE_ZSA + } +}; |