r600g,radeonsi: initialize HTILE to fully-expanded state
authorMarek Olšák <marek.olsak@amd.com>
Sat, 23 Aug 2014 13:48:21 +0000 (15:48 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 1 Sep 2014 19:18:52 +0000 (21:18 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 17aca01ad9f41a617ff9fea2c2c04c8c27e4ac85..f879f2a9eca6f296d3f29560cb304c725337bb1d 100644 (file)
@@ -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);
        }
 }