diff options
author | Marek Olšák <[email protected]> | 2012-12-02 04:40:36 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-12-02 07:07:33 +0100 |
commit | 62cba629c09aaf236b2750785b899934b531b17a (patch) | |
tree | b2c06871245874ef5a838847d037a60c946ce190 /src/gallium/drivers/r300/r300_emit.c | |
parent | e5f1f8d52e6bfdf087f930425eb5092f52a29940 (diff) |
Revert "r300g: fix occlusion queries when depth test is disabled or zbuffer is missing"
It broke Hyper-Z terribly.
Diffstat (limited to 'src/gallium/drivers/r300/r300_emit.c')
-rw-r--r-- | src/gallium/drivers/r300/r300_emit.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/gallium/drivers/r300/r300_emit.c b/src/gallium/drivers/r300/r300_emit.c index 1da6044eb87..8d9d3386239 100644 --- a/src/gallium/drivers/r300/r300_emit.c +++ b/src/gallium/drivers/r300/r300_emit.c @@ -441,19 +441,6 @@ void r300_emit_fb_state(struct r300_context* r300, unsigned size, void* state) OUT_CS_REG(R300_ZB_ZMASK_OFFSET, 0); OUT_CS_REG(R300_ZB_ZMASK_PITCH, surf->pitch_zmask); } - /* Set up a dummy zbuffer. Otherwise occlusion queries won't work. - * Use the first colorbuffer, we will disable writes in the DSA state - * so as not to corrupt it. */ - } else if (fb->nr_cbufs) { - surf = r300_surface(fb->cbufs[0]); - - OUT_CS_REG(R300_ZB_FORMAT, R300_DEPTHFORMAT_16BIT_INT_Z); - - OUT_CS_REG(R300_ZB_DEPTHOFFSET, 0); - OUT_CS_RELOC(surf); - - OUT_CS_REG(R300_ZB_DEPTHPITCH, 4 | R300_DEPTHMICROTILE_TILED_SQUARE); - OUT_CS_RELOC(surf); } END_CS; |