freedreno/a6xx: deduplicate a few lines
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user