From: Marek Olšák Date: Sat, 23 Aug 2014 13:48:21 +0000 (+0200) Subject: r600g,radeonsi: initialize HTILE to fully-expanded state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f05fe294e7e8dfb08be172f426252192c0ba17ab;p=mesa.git r600g,radeonsi: initialize HTILE to fully-expanded state Reviewed-by: Michel Dänzer --- 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); } }