diff options
-rw-r--r-- | src/gallium/drivers/freedreno/a6xx/fd6_blitter.c | 8 |
1 files 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); |