From: Rob Clark Date: Sat, 4 May 2019 16:16:58 +0000 (-0700) Subject: freedreno/a6xx: deduplicate a few lines X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2da36dd0b63268dec17e4b3ddc35da7c831ce6b1;p=mesa.git freedreno/a6xx: deduplicate a few lines Signed-off-by: Rob Clark --- diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c index e9b12812f46..a00e4446333 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_gmem.c @@ -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;