projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
st/xorg: If dri2 version is 2 support version 1 as well
[mesa.git]
/
src
/
gallium
/
drivers
/
r300
/
r300_fs.h
diff --git
a/src/gallium/drivers/r300/r300_fs.h
b/src/gallium/drivers/r300/r300_fs.h
index 967e9f697e9aac47b1c7fe93750a6f1756ccb8d8..e831c30301b2fd6386d1024d2a7bf017bca2a873 100644
(file)
--- a/
src/gallium/drivers/r300/r300_fs.h
+++ b/
src/gallium/drivers/r300/r300_fs.h
@@
-24,11
+24,9
@@
#ifndef R300_FS_H
#define R300_FS_H
#ifndef R300_FS_H
#define R300_FS_H
-#include "
tgsi/tgsi_dump
.h"
+#include "
pipe/p_state
.h"
-#include "r300_context.h"
-#include "r3xx_fs.h"
-#include "r5xx_fs.h"
+#include "tgsi/tgsi_scan.h"
#include "radeon_code.h"
#include "radeon_code.h"
@@
-48,4
+46,10
@@
struct r300_fragment_shader {
void r300_translate_fragment_shader(struct r300_context* r300,
struct r300_fragment_shader* fs);
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 */
#endif /* R300_FS_H */