lima: move format handling to unified place

Create a unified table to handle pipe format to texture
and render target format lookup.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
22 jobs for !1704 with topic/add-format in 13 minutes and 38 seconds (queued for 2 seconds)
detached
Status Name Job ID Coverage
  Containers Build
passed debian #531853

00:00:23

 
  Build+Test
passed meson-arm64 #531862

00:02:28

passed meson-armhf #531861

00:02:39

passed meson-clang #531855

00:09:48

passed meson-clover #531859

00:09:40

passed meson-i386 #531863

00:03:52

passed meson-main #531858

00:09:52

passed meson-swr-glvnd #531854

00:05:53

passed meson-vulkan #531860

00:03:04

passed scons-llvm #531865

00:05:47

passed scons-nollvm #531864

00:07:02

passed scons-swr #531856

00:08:41

passed scons-win64 #531857

00:06:46

 
  Test
passed test-llvmpipe-gles2 1/4 #531866

00:02:19

passed test-llvmpipe-gles2 2/4 #531867

00:02:27

passed test-llvmpipe-gles2 3/4 #531868

00:02:17

passed test-llvmpipe-gles2 4/4 #531869

00:02:24

passed test-softpipe-gles2 1/4 #531870

00:01:05

passed test-softpipe-gles2 2/4 #531871

00:01:12

passed test-softpipe-gles2 3/4 #531872

00:01:22

passed test-softpipe-gles2 4/4 #531873

00:01:21

passed test-softpipe-gles3-limited #531874

00:03:19