radeonsi: remove an old hack for evergreen
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Nov 2017 19:29:27 +0000 (20:29 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 27 Nov 2017 13:12:38 +0000 (14:12 +0100)
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c

index 5f6e9139d0f588f27d5fe83f23e8aa1479008d65..9feaee7fbb1e2bfd7e9dd634c23e7726ada37ab7 100644 (file)
@@ -297,16 +297,6 @@ static int r600_init_surface(struct r600_common_screen *rscreen,
                       pitch_in_bytes_override == surface->u.gfx9.surf_pitch * bpe);
                surface->u.gfx9.surf_offset = offset;
        } else {
-               if (pitch_in_bytes_override &&
-                   pitch_in_bytes_override != surface->u.legacy.level[0].nblk_x * bpe) {
-                       /* old ddx on evergreen over estimate alignment for 1d, only 1 level
-                        * for those
-                        */
-                       surface->u.legacy.level[0].nblk_x = pitch_in_bytes_override / bpe;
-                       surface->u.legacy.level[0].slice_size = pitch_in_bytes_override *
-                                                               surface->u.legacy.level[0].nblk_y;
-               }
-
                if (offset) {
                        for (i = 0; i < ARRAY_SIZE(surface->u.legacy.level); ++i)
                                surface->u.legacy.level[i].offset += offset;