diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-01 19:53:52 +0200 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-01 19:59:42 +0200 |
commit | c9ea62444c6969da8706ea88e12df8c458a6acce (patch) | |
tree | 2241ec0f38333c34382c3d0f70952fa8f4d805c8 /src/mesa/drivers/dri/r300/r300_context.h | |
parent | d9c7c5f071f5bf2a7516d877c9ab84b2b2b91779 (diff) |
r300: Writing to result.depth in fragment programs (R3xx; only stub for R5xx)
Setup fg_depth_src for depth writing programs and change early Z (ztop)
semantics.
Piglit's version of glean/fragprog test passes now (unlike Glean, its
dependency on EXT_fog_coord, which we don't support, is optional).
R3xx only at the moment, but should be straightforward to adapt to R5xx
(I don't own an R5xx, and I don't want to break anything.)
Diffstat (limited to 'src/mesa/drivers/dri/r300/r300_context.h')
-rw-r--r-- | src/mesa/drivers/dri/r300/r300_context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index 53e5d181a4..817f783dff 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -794,6 +794,7 @@ struct r300_fragment_program { int max_temp_idx; + GLboolean WritesDepth; GLuint optimization; }; @@ -869,7 +870,7 @@ struct r300_state { */ struct r300_swtcl_info { GLuint RenderIndex; - + /** * Size of a hardware vertex. This is calculated when \c ::vertex_attrs is * installed in the Mesa state vector. |