freedreno/a6xx: deduplicate a few lines
authorRob Clark <robdclark@chromium.org>
Sat, 4 May 2019 16:16:58 +0000 (09:16 -0700)
committerRob Clark <robdclark@chromium.org>
Sat, 4 May 2019 18:50:44 +0000 (11:50 -0700)
Signed-off-by: Rob Clark <robdclark@chromium.org>
src/gallium/drivers/freedreno/a6xx/fd6_gmem.c

index e9b12812f46565cb977202f0790a74af9c928b12..a00e4446333834d4664c5e0f94d297a5f072f0e1 100644 (file)
@@ -96,12 +96,6 @@ emit_mrt(struct fd_ringbuffer *ring, struct pipe_framebuffer_state *pfb,
                stride = slice->pitch * rsc->cpp * pfb->samples;
                swap = rsc->tile_mode ? WZYX : fd6_pipe2swap(pformat);
 
-               if (rsc->tile_mode &&
-                       fd_resource_level_linear(psurf->texture, psurf->u.tex.level))
-                       tile_mode = TILE6_LINEAR;
-               else
-                       tile_mode = rsc->tile_mode;
-
                if (rsc->tile_mode &&
                        fd_resource_level_linear(psurf->texture, psurf->u.tex.level))
                        tile_mode = TILE6_LINEAR;