Revert "r600g,radeonsi: initialize HTILE to fully-expanded state"
authorMarek Olšák <marek.olsak@amd.com>
Thu, 4 Sep 2014 13:24:45 +0000 (15:24 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 4 Sep 2014 13:48:38 +0000 (15:48 +0200)
This reverts commit f05fe294e7e8dfb08be172f426252192c0ba17ab.

Apparently the hw doesn't like this. Revert to the "cleared" state.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83418

src/gallium/drivers/radeon/r600_texture.c

index f879f2a9eca6f296d3f29560cb304c725337bb1d..17aca01ad9f41a617ff9fea2c2c04c8c27e4ac85 100644 (file)
@@ -559,9 +559,7 @@ 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 {
-               /* Clear to fully-expanded state. */
-               r600_screen_clear_buffer(rscreen, &rtex->htile_buffer->b.b, 0,
-                                        htile_size, 0xffffffff);
+               r600_screen_clear_buffer(rscreen, &rtex->htile_buffer->b.b, 0, htile_size, 0);
        }
 }