summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-08-23 15:48:21 +0200
committerMarek Olšák <[email protected]>2014-09-01 21:18:52 +0200
commitf05fe294e7e8dfb08be172f426252192c0ba17ab (patch)
tree527a52f63a26f2de120b0461f46ceccc5bff65c3 /src/gallium/drivers/radeon
parent573313c94e6925598edb5769885fb973cf628e11 (diff)
r600g,radeonsi: initialize HTILE to fully-expanded state
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/r600_texture.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
index 17aca01ad9f..f879f2a9eca 100644
--- a/src/gallium/drivers/radeon/r600_texture.c
+++ b/src/gallium/drivers/radeon/r600_texture.c
@@ -559,7 +559,9 @@ static void r600_texture_allocate_htile(struct r600_common_screen *rscreen,
* without htile buffer */
R600_ERR("Failed to create buffer object for htile buffer.\n");
} else {
- r600_screen_clear_buffer(rscreen, &rtex->htile_buffer->b.b, 0, htile_size, 0);
+ /* Clear to fully-expanded state. */
+ r600_screen_clear_buffer(rscreen, &rtex->htile_buffer->b.b, 0,
+ htile_size, 0xffffffff);
}
}