summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno
diff options
context:
space:
mode:
authorKristian H. Kristensen <[email protected]>2019-02-01 15:28:00 -0800
committerKristian H. Kristensen <[email protected]>2019-02-11 12:26:21 -0800
commite9592da2b4b62318031f26d3281a1ec928b3fdb3 (patch)
treeef39206bb34622eabcf5540df6b6c733f5b31d28 /src/gallium/drivers/freedreno
parentd2639f2eac204944cfaa67021b8c54ae834fae53 (diff)
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 <[email protected]> Signed-off-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno')
-rw-r--r--src/gallium/drivers/freedreno/a6xx/fd6_blitter.c8
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);