ir3/a6xx,freedreno: account for resinfo return size dependency on IBO_0_FMT

On a6xx resinfo returns size in bytes divided by IBO_0_FMT format size
(not just size in dwords), we have to shift it back to NIR meaning which
is size in bytes.

Make freedreno use 16b buffers when they are supported in order to be
able to depend on hardware capabilities when lowering ssbo size.

Fixes: ce1a381e "turnip: enable VK_KHR_16bit_storage on A650"

Fixes cts tests:
    dEQP-VK.ssbo.unsized_array_length.float_offset_explicit_size
    dEQP-VK.ssbo.unsized_array_length.float_no_offset_whole_size
    dEQP-VK.compute.basic.write_multiple_unsized_arr_single_invocation
and many more

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <!12485>
59 jobs for !12485 with ir3/fix/16b-ssbo-size in 23 minutes and 53 seconds (queued for 9 seconds)
latest detached
Status Name Job ID Coverage
  Sanity
passed sanity #13297295

00:00:14

 
  Container
passed debian/arm_build #13297298
aarch64

00:00:16

passed debian/x86_build-base #13297296

00:00:20

passed debian/x86_test-base #13297297

00:00:19

passed fedora/x86_build #13297299

00:00:17

passed windows_build_vs2019 #13297300
windows shell 1809 mesa

00:00:09

 
  Container 2
passed debian/android_build #13297305

00:00:18

passed debian/i386_build #13297302

00:00:18

passed debian/ppc64el_build #13297303

00:00:18

passed debian/s390x_build #13297304

00:00:17

passed debian/x86_build #13297301

00:00:15

passed debian/x86_test-gl #13297306

00:00:17

passed debian/x86_test-vk #13297307

00:00:18

passed kernel+rootfs_amd64 #13297308

00:00:11

passed kernel+rootfs_arm64 #13297309
aarch64

00:01:05

passed kernel+rootfs_armhf #13297310
aarch64

00:00:11

 
  Build X86 64
passed debian-clang #13297317

00:08:45

passed debian-clover #13297318

00:01:37

passed debian-clover-testing #13297313

00:01:36

passed debian-gallium #13297314

00:06:40

passed debian-release #13297315

00:03:10

passed debian-testing #13297311

00:03:56

passed debian-testing-asan #13297312

00:02:19

passed debian-vulkan #13297319

00:01:39

passed fedora-release #13297316

00:02:00

 
  Build Misc
passed debian-android #13297321

00:00:56

passed debian-arm64 #13297323
aarch64

00:01:45

passed debian-arm64-asan #13297324
aarch64

00:03:09

passed debian-arm64-build-test #13297325
aarch64

00:01:35

passed debian-armhf #13297322
aarch64

00:01:36

passed debian/arm_test #13297320

00:00:33

passed debian-i386 #13297326

00:00:56

passed debian-mingw32-x86_64 #13297327

00:03:53

 
  Freedreno
passed a306_gl 1/5 #13297328
google-freedreno-db410c

00:07:19

passed a306_gl 2/5 #13297329
google-freedreno-db410c

00:07:27

passed a306_gl 3/5 #13297330
google-freedreno-db410c

00:07:35

passed a306_gl 4/5 #13297331
google-freedreno-db410c

00:06:53

passed a306_gl 5/5 #13297332
google-freedreno-db410c

00:07:19

passed a306-traces #13297333
google-freedreno-db410c

00:02:24

passed a530_gl 1/5 #13297334
google-freedreno-db820c

00:07:34

passed a530_gl 2/5 #13297335
google-freedreno-db820c

00:08:08

passed a530_gl 3/5 #13297336
google-freedreno-db820c

00:07:52

passed a530_gl 4/5 #13297337
google-freedreno-db820c

00:09:17

passed a530_gl 5/5 #13297338
google-freedreno-db820c

00:07:59

passed a530_piglit_shader 1/2 #13297339
google-freedreno-db820c

00:09:27

passed a530_piglit_shader 2/2 #13297340
google-freedreno-db820c

00:09:20

passed a530-traces #13297341
google-freedreno-db820c

00:07:19

passed a630_egl #13297346
google-freedreno-cheza

00:02:19

passed a630_gl 1/4 #13297342
google-freedreno-cheza

00:05:24

passed a630_gl 2/4 #13297343
google-freedreno-cheza

00:06:32

passed a630_gl 3/4 #13297344
google-freedreno-cheza

00:05:08

passed a630_gl 4/4 #13297345
google-freedreno-cheza

00:05:52

passed a630_piglit #13297350
google-freedreno-cheza

00:08:32

passed a630-traces #13297351
google-freedreno-cheza

00:04:40

passed a630-traces-performance #13297353
google-freedreno-cheza manual

00:04:24

passed a630-traces-restricted #13297352
google-freedreno-cheza

00:03:55

passed a630_vk 1/3 #13297347
google-freedreno-cheza

00:08:02

passed a630_vk 2/3 #13297348
google-freedreno-cheza

00:09:01

passed a630_vk 3/3 #13297349
google-freedreno-cheza

00:09:15