diff options
author | Jerome Glisse <[email protected]> | 2012-07-14 23:05:03 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-07-15 02:06:44 +0200 |
commit | e634651024d6507cf325999494a3e2630f3072c8 (patch) | |
tree | a7f933b44232d28855a4c74ab0420db672a5aa37 /src/gallium/drivers/r600/r600_blit.c | |
parent | c2f444c54db82a53f63fa7a103770ee5eedc3559 (diff) |
r600g: fix DB decompression on evergreen
Separated out of the hyperz patch by Marek with minor modifications.
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_blit.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_blit.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/gallium/drivers/r600/r600_blit.c b/src/gallium/drivers/r600/r600_blit.c index fff48a41adf..98f8b84a51a 100644 --- a/src/gallium/drivers/r600/r600_blit.c +++ b/src/gallium/drivers/r600/r600_blit.c @@ -132,8 +132,7 @@ void r600_blit_uncompress_depth(struct pipe_context *ctx, rctx->family == CHIP_RV620 || rctx->family == CHIP_RV635) depth = 0.0f; - if (rctx->chip_class <= R700 && - !rctx->db_misc_state.flush_depthstencil_through_cb) { + if (!rctx->db_misc_state.flush_depthstencil_through_cb) { /* Enable decompression in DB_RENDER_CONTROL */ rctx->db_misc_state.flush_depthstencil_through_cb = true; r600_atom_dirty(rctx, &rctx->db_misc_state.atom); @@ -179,11 +178,9 @@ void r600_blit_uncompress_depth(struct pipe_context *ctx, } } - if (rctx->chip_class <= R700) { - /* Disable decompression in DB_RENDER_CONTROL */ - rctx->db_misc_state.flush_depthstencil_through_cb = false; - r600_atom_dirty(rctx, &rctx->db_misc_state.atom); - } + /* reenable compression in DB_RENDER_CONTROL */ + rctx->db_misc_state.flush_depthstencil_through_cb = false; + r600_atom_dirty(rctx, &rctx->db_misc_state.atom); } static void r600_flush_depth_textures(struct r600_context *rctx, |