freedreno: limit tiling to PIPE_BIND_SAMPLER_VIEW

1ce5d757d0 dropped this limit.. which is probably the right thing to
do.  But it results in an extra tiled->linear blit for glReadPixels()
(ie. dEQP/piglit) which is hitting some intermittent corruption (looks
like cache) on a6xx, causing a lot of spurious fails.

Since we are getting close to 19.0 branchpoint, re-instate this limit
for now, until the blitter problems are resolved.

Fixes: 1ce5d757d0 freedreno: core buffer modifier support
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Rob Clark
2019-01-25 09:03:51 -05:00
parent 378e2d2414
commit 4aa64940c6
@@ -885,6 +885,7 @@ 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);
}