summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_fs.h
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-10-14 18:05:14 +1000
committerDave Airlie <airlied@redhat.com>2009-10-14 18:05:14 +1000
commitce5cba040c34a1a70186c29a5055e9be3c85a54a (patch)
treedd292fa00e3f59abe3d9acf76e9866c0c93e9acf /src/gallium/drivers/r300/r300_fs.h
parent51d1cf55da6f8b8a215814589a189b6e5e537fe5 (diff)
r300g: add one more ZTOP disable bit.
Still missing the frag uses kill support, hopefully nha can point that out.
Diffstat (limited to 'src/gallium/drivers/r300/r300_fs.h')
-rw-r--r--src/gallium/drivers/r300/r300_fs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_fs.h b/src/gallium/drivers/r300/r300_fs.h
index 967e9f697e..04453274aa 100644
--- a/src/gallium/drivers/r300/r300_fs.h
+++ b/src/gallium/drivers/r300/r300_fs.h
@@ -48,4 +48,10 @@ struct r300_fragment_shader {
void r300_translate_fragment_shader(struct r300_context* r300,
struct r300_fragment_shader* fs);
+static inline boolean r300_fragment_shader_writes_depth(struct r300_fragment_shader *fs)
+{
+ if (!fs)
+ return FALSE;
+ return (fs->code.writes_depth) ? TRUE : FALSE;
+}
#endif /* R300_FS_H */