freedreno/a6xx: Use tiling for all resources
authorKristian H. Kristensen <hoegsberg@chromium.org>
Wed, 6 Feb 2019 22:10:36 +0000 (14:10 -0800)
committerKristian H. Kristensen <hoegsberg@chromium.org>
Wed, 6 Feb 2019 23:28:48 +0000 (15:28 -0800)
We used to restrict this to just PIPE_BIND_SAMPLER_VIEW resources, but
most resources benefit from being tiled.

Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/freedreno_resource.c

index ce8e4480be1342e655d218ce24245a95c4e5e0e3..835de9f93eeda5ad83f6fad9d9ffd3b9edb17fea 100644 (file)
@@ -914,7 +914,6 @@ fd_resource_create_with_modifiers(struct pipe_screen *pscreen,
 
        if (screen->tile_mode &&
                        (tmpl->target != PIPE_BUFFER) &&
-                       (tmpl->bind & PIPE_BIND_SAMPLER_VIEW) &&
                        !linear) {
                rsc->tile_mode = screen->tile_mode(tmpl);
        }