freedreno/a6xx: don't tile things that are too small
authorRob Clark <robdclark@chromium.org>
Mon, 9 Sep 2019 23:19:40 +0000 (16:19 -0700)
committerRob Clark <robdclark@gmail.com>
Tue, 10 Sep 2019 22:08:33 +0000 (22:08 +0000)
commit85a23a8991cfb78960362114bf16304ea987f7f4
tree2b2208563d136f494342364b70d8f768ef2fe354
parent15e439071d8d695503a92594e561bf845ef9f4bb
freedreno/a6xx: don't tile things that are too small

If the lowest (largest) mipmap level is too small to tile, then don't
bother pretending.

Note that this requires initializing pipe->screen before
fd_resource_level_linear() is called.

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