From: Rob Clark Date: Fri, 25 Jan 2019 14:03:51 +0000 (-0500) Subject: freedreno: limit tiling to PIPE_BIND_SAMPLER_VIEW X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4aa64940c63408b7dc641e9d2756ac4c3f512676;p=mesa.git freedreno: limit tiling to PIPE_BIND_SAMPLER_VIEW 1ce5d757d04 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: 1ce5d757d04 freedreno: core buffer modifier support Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/freedreno_resource.c b/src/gallium/drivers/freedreno/freedreno_resource.c index 2e7c00ad1fe..ca48fc9cee1 100644 --- a/src/gallium/drivers/freedreno/freedreno_resource.c +++ b/src/gallium/drivers/freedreno/freedreno_resource.c @@ -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); }