summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau/nv30/nv30_state.h
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-08-11 12:19:54 -0400
committerIlia Mirkin <[email protected]>2015-08-14 13:05:29 -0400
commit7ff7d5d799a54f2b08a3019df7fd531501174182 (patch)
tree7aaf1e106c9b0ef4ce533a9061ddf8bf8c66712a /src/gallium/drivers/nouveau/nv30/nv30_state.h
parenta6bf20d153f06639e1ae7d52d37ace9df440354d (diff)
nv30: add depth bounds test support for hw that has it
Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30/nv30_state.h')
-rw-r--r--src/gallium/drivers/nouveau/nv30/nv30_state.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_state.h b/src/gallium/drivers/nouveau/nv30/nv30_state.h
index 1f13d24f349..ed3b8103a00 100644
--- a/src/gallium/drivers/nouveau/nv30/nv30_state.h
+++ b/src/gallium/drivers/nouveau/nv30/nv30_state.h
@@ -13,6 +13,8 @@
#define SB_DATA(so, u) (so)->data[(so)->size++] = (u)
#define SB_MTHD30(so, mthd, size) \
SB_DATA((so), ((size) << 18) | (7 << 13) | NV30_3D_##mthd)
+#define SB_MTHD35(so, mthd, size) \
+ SB_DATA((so), ((size) << 18) | (7 << 13) | NV35_3D_##mthd)
#define SB_MTHD40(so, mthd, size) \
SB_DATA((so), ((size) << 18) | (7 << 13) | NV40_3D_##mthd)
@@ -30,7 +32,7 @@ struct nv30_rasterizer_stateobj {
struct nv30_zsa_stateobj {
struct pipe_depth_stencil_alpha_state pipe;
- unsigned data[32];
+ unsigned data[36];
unsigned size;
};