summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-30 11:56:14 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-30 11:56:14 -0700
commit0d3f60ec64965a07ef26b551436f0d768154e4d3 (patch)
tree72fd25ea4b8854a47febdca30e70daa2773de998 /src
parent41bdf4cf4c924e4c04c62dc144584cf7ead3cf44 (diff)
Cell: check tile status before wait_on_mask()
Diffstat (limited to 'src')
-rw-r--r--src/mesa/pipe/cell/spu/spu_tri.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/cell/spu/spu_tri.c b/src/mesa/pipe/cell/spu/spu_tri.c
index 7c6a54134f..01a47a4851 100644
--- a/src/mesa/pipe/cell/spu/spu_tri.c
+++ b/src/mesa/pipe/cell/spu/spu_tri.c
@@ -278,7 +278,7 @@ do_depth_test(struct setup_stage *setup, int x, int y, unsigned mask)
/* now, _really_ clear the tile */
clear_z_tile(&ztile);
}
- else {
+ else if (tile_status_z[setup->ty][setup->tx] != TILE_STATUS_DIRTY) {
/* make sure we've got the tile from main mem */
wait_on_mask(1 << TAG_READ_TILE_Z);
}
@@ -403,7 +403,7 @@ emit_quad( struct setup_stage *setup, int x, int y, unsigned mask )
/* now, _really_ clear the tile */
clear_c_tile(&ctile);
}
- else {
+ else if (tile_status[setup->ty][setup->tx] != TILE_STATUS_DIRTY) {
/* make sure we've got the tile from main mem */
wait_on_mask(1 << TAG_READ_TILE_COLOR);
}