diff options
author | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-05-17 10:30:59 -0700 |
---|---|---|
committer | Corbin Simpson <MostAwesomeDude@gmail.com> | 2009-05-17 10:30:59 -0700 |
commit | 8dae8f28e52ed20b087ecf0d09efe2d94bdd09cf (patch) | |
tree | 92b6b3cc99712fe21839ae64fd232ae97d1af3e7 /src/gallium/drivers/r300/r300_state_shader.h | |
parent | 7e97219ff8adce22d30abeda53144f7193589c30 (diff) |
r300-gallium: r500-fs: Enable depth writes, kinda.
Should work, but doesn't. Hm.
Diffstat (limited to 'src/gallium/drivers/r300/r300_state_shader.h')
-rw-r--r-- | src/gallium/drivers/r300/r300_state_shader.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/r300/r300_state_shader.h b/src/gallium/drivers/r300/r300_state_shader.h index 185fdd90f0..f4fb31d86c 100644 --- a/src/gallium/drivers/r300/r300_state_shader.h +++ b/src/gallium/drivers/r300/r300_state_shader.h @@ -57,6 +57,7 @@ #define R500_TEX_WMASK(x) ((x) << 11) #define R500_ALU_WMASK(x) ((x) << 11) #define R500_ALU_OMASK(x) ((x) << 15) +#define R500_W_OMASK (1 << 31) /* TGSI constants. TGSI is like XML: If it can't solve your problems, you're * not using enough of it. */ @@ -99,6 +100,11 @@ struct r300_fs_asm { unsigned imm_offset; /* Number of immediate constants. */ unsigned imm_count; + /* Are depth writes enabled? */ + boolean writes_depth; + /* Depth write offset. This is the TGSI output that corresponds to + * depth writes. */ + unsigned depth_output; }; void r300_translate_fragment_shader(struct r300_context* r300, |