r600/texture: drop lowering 1d/2d images to linear.
authorDave Airlie <airlied@redhat.com>
Fri, 3 Nov 2017 01:35:03 +0000 (11:35 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 6 Dec 2017 23:20:20 +0000 (23:20 +0000)
This appears to cause hangs with compute images. Unless
we can find more specifics, just don't do this for now.

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_texture.c

index 4042b70a9bf9dc041b1e84b776491a9d4dbddf49..3895d53912cbae96bc0a952cde462c961316b646 100644 (file)
@@ -1053,14 +1053,6 @@ r600_choose_tiling(struct r600_common_screen *rscreen,
                if (templ->bind & PIPE_BIND_LINEAR)
                        return RADEON_SURF_MODE_LINEAR_ALIGNED;
 
-               /* Textures with a very small height are recommended to be linear. */
-               if (templ->target == PIPE_TEXTURE_1D ||
-                   templ->target == PIPE_TEXTURE_1D_ARRAY ||
-                   /* Only very thin and long 2D textures should benefit from
-                    * linear_aligned. */
-                   (templ->width0 > 8 && templ->height0 <= 2))
-                       return RADEON_SURF_MODE_LINEAR_ALIGNED;
-
                /* Textures likely to be mapped often. */
                if (templ->usage == PIPE_USAGE_STAGING ||
                    templ->usage == PIPE_USAGE_STREAM)