From: Kristian H. Kristensen Date: Fri, 1 Feb 2019 23:28:00 +0000 (-0800) Subject: freedreno/a6xx: Move blit check so as to restore comment X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9592da2b4b62318031f26d3281a1ec928b3fdb3;p=mesa.git 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 --- 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);