summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv30/nv30_state_zsa.c
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2008-09-12 20:37:33 +1000
committerBen Skeggs <skeggsb@gmail.com>2008-09-12 20:37:33 +1000
commitcbe05a4734a7df7dd9d8e52f79d0ed5e6c28ae60 (patch)
treee4f67e46334b43f051a0605c7762cac36ad7c1f6 /src/gallium/drivers/nv30/nv30_state_zsa.c
parent522139dd146450edfd3d2f07c627b32512a2c27e (diff)
parent81335d0f1760fe172a106f79e81281c1f0d7dedf (diff)
downloadexternal_mesa3d-cbe05a4734a7df7dd9d8e52f79d0ed5e6c28ae60.zip
external_mesa3d-cbe05a4734a7df7dd9d8e52f79d0ed5e6c28ae60.tar.gz
external_mesa3d-cbe05a4734a7df7dd9d8e52f79d0ed5e6c28ae60.tar.bz2
Merge remote branch 'nouveau/gallium-0.1' into nouveau-gallium-0.2
Conflicts: configs/linux-dri
Diffstat (limited to 'src/gallium/drivers/nv30/nv30_state_zsa.c')
-rw-r--r--src/gallium/drivers/nv30/nv30_state_zsa.c17
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 0000000..0940b72
--- /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
+ }
+};