freedreno: reorder format check

With the addition of the planar formats helper, the
planar formats no longer have a valid block.bits field.
Calling util_format_get_blocksize therefore asserts.

Reorder the check to see if the format is supported
before doing the query to get the blocksize.

Fixes: 20f132e5 ("gallium/util: add planar format layouts and helpers")

Signed-off-by: Fritz Koenig <frkoenig@google.com>
Reviewed-by: Rob Clark <robdclark@chromium.org>
42 jobs for !2969 with fix_planar_format_check in 25 minutes and 33 seconds (queued for 17 seconds)
latest detached
Status Job ID Name Coverage
  Container
passed arm_build #1087866
aarch64

00:00:28

passed arm_test #1087867
aarch64

00:00:39

passed lava_arm64 #1087862

00:01:03

passed lava_armhf #1087861

00:01:11

passed x86_build #1087863

00:00:29

passed x86_build_old #1087865

00:00:28

passed x86_test-gl #1087864

00:15:37

 
  Build
passed lava-build:arm64 #1087869

00:04:57

passed lava-build:armhf #1087868

00:04:32

passed meson-arm64 #1087873
aarch64

00:09:47

passed meson-armhf #1087872
aarch64

00:05:54

passed meson-clang #1087874

00:09:40

passed meson-clover #1087877

00:09:32

passed meson-clover-old-llvm #1087878

00:07:12

passed meson-i386 #1087880

00:04:44

passed meson-main #1087871

00:13:24

passed meson-mingw32-x86_64 #1087881

00:07:19

passed meson-testing #1087870

00:09:07

passed meson-vulkan #1087879

00:05:12

passed scons #1087882

00:08:21

passed scons-old-llvm #1087883

00:04:30

passed scons-swr #1087875

00:07:34

passed scons-win64 #1087876

00:07:38

 
  Test
passed arm64_a306_gles2 #1087902
db410c

00:05:07

passed arm64_a630_gles2 #1087899
mesa-cheza

00:01:33

passed arm64_a630_gles3 #1087901
mesa-cheza

00:05:39

passed arm64_a630_gles31 #1087900
mesa-cheza

00:04:16

passed panfrost-t720-test:arm64 #1087884
lava-sun50i-h6-pine-h64

00:07:47

passed panfrost-t760-test:armhf #1087885
lava-rk3288-veyron-jaq

00:05:01

passed panfrost-t820-test:arm64 #1087887
lava-meson-gxm-khadas-vim2

00:04:43

passed panfrost-t860-test:arm64 #1087886
lava-rk3399-gru-kevin

00:04:18

passed piglit-glslparser #1087889

00:04:54

passed piglit-quick_gl #1087888

00:09:53

passed piglit-quick_shader #1087890

00:05:23

passed test-llvmpipe-gles2 #1087891

00:05:29

passed test-softpipe-gles2 #1087892

00:01:12

passed test-softpipe-gles31 1/4 #1087895

00:05:26

passed test-softpipe-gles3 1/2 #1087893

00:06:43

passed test-softpipe-gles31 2/4 #1087896

00:06:16

passed test-softpipe-gles31 3/4 #1087897

00:07:03

passed test-softpipe-gles31 4/4 #1087898

00:05:21

passed test-softpipe-gles3 2/2 #1087894

00:08:33