r300: Writing to result.depth in fragment programs (R3xx; only stub for R5xx)
authorNicolai Haehnle <nhaehnle@gmail.com>
Sun, 1 Jun 2008 17:53:52 +0000 (19:53 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sun, 1 Jun 2008 17:59:42 +0000 (19:59 +0200)
commitc9ea62444c6969da8706ea88e12df8c458a6acce
tree2241ec0f38333c34382c3d0f70952fa8f4d805c8
parentd9c7c5f071f5bf2a7516d877c9ab84b2b2b91779
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.)
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_fragprog.c
src/mesa/drivers/dri/r300/r300_state.c