tu,radv: fix potentially wrong offset of flexible array.

v2. Remove redundant memset and make the expression simpler.

Signed-off-by: Hyunjun Ko <zzoon@igalia.com>
Part-of: <mesa/mesa!5703>
43 jobs for !5703 with fix_offset_of_fma in 23 minutes and 27 seconds (queued for 4 seconds)
detached
Status Job ID Name Coverage
  Container+Docs
passed arm_build #3419269
aarch64

00:00:22

passed arm_test-base #3419271

00:00:18

passed x86_build-base #3419265

00:00:18

passed x86_build_old #3419268

00:00:13

passed x86_test-base #3419266

00:00:19

 
  Container 2
passed arm64_test #3419282

00:00:23

passed i386_build #3419274

00:00:22

passed ppc64el_build #3419276

00:00:23

passed s390x_build #3419277

00:00:18

passed x86_build #3419273

00:00:22

passed x86_test-gl #3419279

00:00:22

passed x86_test-vk #3419280

00:00:14

 
  Meson X86 64
passed meson-clang #3419288

00:07:19

passed meson-classic #3419287

00:05:55

passed meson-clover #3419290

00:06:24

passed meson-clover-old-llvm #3419291

00:10:17

passed meson-gallium #3419285

00:10:58

passed meson-testing #3419283

00:09:12

passed meson-vulkan #3419293

00:08:06

 
  Scons
passed scons-win64 #3419295

00:10:40

 
  Meson Misc
passed meson-arm64 #3419298
aarch64

00:04:12

passed meson-arm64-build-test #3419300
aarch64

00:07:34

passed meson-armhf #3419296
aarch64

00:05:53

passed meson-i386 #3419302

00:07:23

passed meson-mingw32-x86_64 #3419307

00:08:05

passed meson-ppc64el #3419305
kvm

00:04:04

passed meson-s390x #3419303
kvm

00:06:47

 
  Freedreno
passed arm64_a306_gles2 #3419327
google-freedreno-db410c

00:07:00

passed arm64_a306_gles3 #3419330
google-freedreno-db410c

00:06:21

passed arm64_a306_gles3_options #3419332
google-freedreno-db410c

00:04:55

passed arm64_a530_gles2 #3419334
google-freedreno-db820c

00:16:28

passed arm64_a530_gles3 #3419336
google-freedreno-db820c

00:03:09

passed arm64_a530_gles31 #3419339
google-freedreno-db820c

00:05:31

passed arm64_a630_bypass #3419317
google-freedreno-cheza

00:03:09

passed arm64_a630_gles2 #3419309
google-freedreno-cheza

00:05:53

passed arm64_a630_gles3 #3419313
google-freedreno-cheza

00:17:57

passed arm64_a630_gles31 #3419311
google-freedreno-cheza

00:13:08

passed arm64_a630_gmem #3419321
google-freedreno-cheza

00:05:35

passed arm64_a630_noubo #3419315
google-freedreno-cheza

00:08:34

passed arm64_a630_traces #3419319
google-freedreno-cheza

00:02:38

passed arm64_a630_vk #3419323
google-freedreno-cheza

00:06:44

passed arm64_a630_vk_sysmem #3419325
google-freedreno-cheza

00:04:48

 
  Radv
passed radv-fossils #3419341

00:06:10