From e9592da2b4b62318031f26d3281a1ec928b3fdb3 Mon Sep 17 00:00:00 2001 From: "Kristian H. Kristensen" Date: Fri, 1 Feb 2019 15:28:00 -0800 Subject: [PATCH] freedreno/a6xx: Move blit check so as to restore comment The explanation for the compressed format check is broken across two comments: /* We can blit if both or neither formats are compressed formats... */ /* ... but only if they're the same compression format. */ but the ok_format() checks were inserted between, breaking up the flow of the sentence. Reviewed-by: Rob Clark Signed-off-by: Kristian H. Kristensen --- src/gallium/drivers/freedreno/a6xx/fd6_blitter.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c index d2e036fe748..b107d484050 100644 --- a/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c +++ b/src/gallium/drivers/freedreno/a6xx/fd6_blitter.c @@ -90,14 +90,14 @@ can_do_blit(const struct pipe_blit_info *info) */ fail_if(info->dst.box.depth != info->src.box.depth); - /* We can blit if both or neither formats are compressed formats... */ - fail_if(util_format_is_compressed(info->src.format) != - util_format_is_compressed(info->src.format)); - /* Fail if unsupported format: */ fail_if(!ok_format(info->src.format)); fail_if(!ok_format(info->dst.format)); + /* We can blit if both or neither formats are compressed formats... */ + fail_if(util_format_is_compressed(info->src.format) != + util_format_is_compressed(info->src.format)); + /* ... but only if they're the same compression format. */ fail_if(util_format_is_compressed(info->src.format) && info->src.format != info->dst.format); -- 2.30.2