summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/i965/brw_cc.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2008-01-16 10:50:28 -0800
committerEric Anholt <eric@anholt.net>2008-01-16 10:50:28 -0800
commit6a5e86b3444b4228c5232bf5a297159e66f02077 (patch)
tree9f2ddd137f7ea8a34dc9ac486b3bc3410ca881cf /src/mesa/drivers/dri/i965/brw_cc.c
parent93ec89e565cbdc9dab010d1a1d259f2348ac7459 (diff)
[965] Rename depth_mask in CC key to depth_write, since it's a boolean enable.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_cc.c')
-rw-r--r--src/mesa/drivers/dri/i965/brw_cc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_cc.c b/src/mesa/drivers/dri/i965/brw_cc.c
index 55be8b9546..9def04d248 100644
--- a/src/mesa/drivers/dri/i965/brw_cc.c
+++ b/src/mesa/drivers/dri/i965/brw_cc.c
@@ -76,8 +76,7 @@ struct brw_cc_unit_key {
GLboolean dither;
- GLboolean depth_test;
- GLubyte depth_mask;
+ GLboolean depth_test, depth_write;
GLenum depth_func;
};
@@ -136,7 +135,7 @@ cc_unit_populate_key(struct brw_context *brw, struct brw_cc_unit_key *key)
key->depth_test = brw->attribs.Depth->Test;
if (key->depth_test) {
key->depth_func = brw->attribs.Depth->Func;
- key->depth_mask = brw->attribs.Depth->Mask;
+ key->depth_write = brw->attribs.Depth->Mask;
}
}
@@ -240,7 +239,7 @@ cc_unit_create_from_key(struct brw_context *brw, struct brw_cc_unit_key *key)
if (key->depth_test) {
cc.cc2.depth_test = 1;
cc.cc2.depth_test_function = intel_translate_compare_func(key->depth_func);
- cc.cc2.depth_write_enable = key->depth_mask;
+ cc.cc2.depth_write_enable = key->depth_write;
}
/* CACHE_NEW_CC_VP */