panfrost: Use ASTC 2D enums

Rather than manipulating the bits to do the mapping, use a dead simple
switch() with the enum definition.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
76 jobs for astc-2d
latest
Status Name Job ID Coverage
  Container
manual debian/arm_build #13731919
aarch64 manual
manual debian/x86_build-base #13731917
manual
manual debian/x86_test-base #13731918
manual
manual fedora/x86_build #13731920
manual
manual windows_build_vs2019 #13731921
windows shell 1809 mesa manual
 
  Container 2
created debian/android_build #13731926
created debian/i386_build #13731923
created debian/ppc64el_build #13731924
created debian/s390x_build #13731925
created debian/x86_build #13731922
created debian/x86_test-gl #13731927
created debian/x86_test-vk #13731928
created kernel+rootfs_amd64 #13731929
created kernel+rootfs_arm64 #13731930
aarch64
created kernel+rootfs_armhf #13731931
aarch64
 
  Build X86 64
created debian-clang #13731938
created debian-clover #13731939
created debian-clover-testing #13731934
created debian-gallium #13731935
created debian-release #13731936
created debian-testing #13731932
created debian-testing-asan #13731933
created debian-vulkan #13731940
created fedora-release #13731937
 
  Build Misc
created debian-android #13731942
created debian-arm64 #13731944
aarch64
created debian-arm64-asan #13731945
aarch64
created debian-arm64-build-test #13731946
aarch64
created debian-armhf #13731943
aarch64
created debian/arm_test #13731941
created debian-i386 #13731947
created debian-mingw32-x86_64 #13731948
 
  Amd
created radv-navy_flounder-traces #13731950
amdgpu:codename:NAVY_FLOUNDER manual
created radv-navy_flounder-vkd3d-proton #13731949
amdgpu:codename:NAVY_FLOUNDER manual
created radv_polaris10_vkcts #13731952
polaris10 manual
created radv-raven-traces #13731951
amdgpu:codename:RAVEN manual
 
  Intel
created i915-g33-deqp #13731953
anholt-g33 manual
created i915-g33-piglit #13731954
anholt-g33 manual
created i915-g33-traces #13731955
anholt-g33 manual
created iris-apl-gl #13731956
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral manual
created iris-cml-traces #13731965
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual
created iris-glk-egl #13731961
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-gl #13731960
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-gles2 #13731957
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-gles3 #13731958
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-gles31 #13731959
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-traces #13731962
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-kbl-traces #13731963
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-whl-traces #13731964
mesa-ci-x86-64-lava-dell-latitude-5400-4305U-sarien manual
 
  Arm
created panfrost-g52-gl:arm64 1/3 #13731973
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gl:arm64 2/3 #13731974
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gl:arm64 3/3 #13731975
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-t720-gles2:arm64 #13731966
mesa-ci-x86-64-lava-sun50i-h6-pine-h64
created panfrost-t760-gles2:armhf #13731967
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t760-traces:armhf #13731968
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t860-gl:arm64 1/3 #13731969
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gl:arm64 2/3 #13731970
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gl:arm64 3/3 #13731971
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-traces:arm64 #13731972
mesa-ci-x86-64-lava-rk3399-gru-kevin
 
  Broadcom
created vc4-rpi3-piglit-quick_gl:armhf 1/4 #13731976
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_gl:armhf 2/4 #13731977
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_gl:armhf 3/4 #13731978
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_gl:armhf 4/4 #13731979
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_shader:armhf 1/2 #13731980
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_shader:armhf 2/2 #13731981
igalia-rpi3 manual
 
  Freedreno
created a530_piglit_gl #13731982
google-freedreno-db820c manual
created a630_gles_asan #13731983
google-freedreno-cheza manual
created a630_vk_asan #13731986
google-freedreno-cheza manual
created a630_vk_full 1/2 #13731984
google-freedreno-cheza manual
created a630_vk_full 2/2 #13731985
google-freedreno-cheza manual
 
  Layered Backends
created virgl-on-gles 1/6 #13731987
kvm manual
created virgl-on-gles 2/6 #13731988
kvm manual
created virgl-on-gles 3/6 #13731989
kvm manual
created virgl-on-gles 4/6 #13731990
kvm manual
created virgl-on-gles 5/6 #13731991
kvm manual
created virgl-on-gles 6/6 #13731992
kvm manual