util: Add accessor for util_cpu_caps

In release builds, there should be no change, but in debug builds the
assert will help us catch undefined behavior resulting from using
util_cpu_caps before it is initialized.

With fix for u_half_test for MSVC from Jesse Natalie squashed in.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <!9266>
109 jobs for !9266 with util/queue-affinity in 24 minutes and 45 seconds (queued for 6 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #7624288
sanity

00:00:55

 
  Container
passed #7624294
aarch64
arm_build

00:00:16

passed #7624296
arm_test-base

00:00:17

passed #7624298
windows shell 1809 mesa
windows_build_vs2019

00:00:12

passed #7624290
x86_build-base

00:00:12

passed #7624292
x86_test-base

00:00:13

 
  Container 2
passed #7624313
android_build

00:00:14

passed #7624318
arm64_test

00:00:14

passed #7624319
armhf_test

00:00:14

passed #7624308
i386_build

00:00:13

passed #7624300
kernel+rootfs_amd64

00:00:19

passed #7624302
aarch64
kernel+rootfs_arm64

00:00:12

passed #7624304
aarch64
kernel+rootfs_armhf

00:01:16

passed #7624309
ppc64el_build

00:00:14

passed #7624311
s390x_build

00:00:14

passed #7624306
x86_build

00:00:14

passed #7624314
x86_test-gl

00:00:15

passed #7624316
x86_test-vk

00:00:14

 
  Meson X86 64
passed #7624330
meson-clang

00:05:01

passed #7624332
meson-clover

00:07:19

passed #7624325
meson-clover-testing

00:03:14

passed #7624327
gstreamer
meson-gallium

00:01:51

passed #7624329
meson-release

00:03:44

passed #7624321
meson-testing

00:08:29

passed #7624323
meson-testing-asan

00:12:18

passed #7624333
meson-vulkan

00:03:12

 
  Build Misc
passed #7624335
meson-android

00:01:09

passed #7624339
aarch64
meson-arm64

00:03:14

passed #7624341
aarch64
meson-arm64-asan

00:09:33

passed #7624343
aarch64
meson-arm64-build-test

00:05:01

passed #7624337
aarch64
meson-armhf

00:05:05

passed #7624347
meson-i386

00:02:53

passed #7624353
meson-mingw32-x86_64

00:03:21

passed #7624351
kvm
meson-ppc64el

00:02:46

passed #7624349
kvm
meson-s390x

00:03:23

passed #7624345
windows docker 1809 mesa
meson-windows-vs2019

00:04:51

 
  Amd
passed #7624355
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64

00:08:08

passed #7624357
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-traces:amd64

00:06:36

passed #7624359
radv-fossils

00:11:07

 
  Arm
passed #7624370
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles2:arm64

00:04:05

passed #7624372
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles3:arm64

00:10:14

passed #7624361
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64

00:07:44

passed #7624363
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64

00:07:48

passed #7624365
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 1/2

00:09:54

passed #7624367
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 2/2

00:05:56

passed #7624369
mesa-ci-aarch64-lava-collabora
panfrost-t860-traces:arm64

00:12:42

 
  Broadcom
passed #7624394
igalia-rpi4
v3d-rpi4-gles2:armhf

00:07:08

passed #7624382
igalia-rpi4
v3d-rpi4-gles31:armhf 1/2

00:05:25

passed #7624384
igalia-rpi4
v3d-rpi4-gles31:armhf 2/2

00:06:01

passed #7624386
igalia-rpi4
v3d-rpi4-gles3:armhf 1/4

00:05:33

passed #7624388
igalia-rpi4
v3d-rpi4-gles3:armhf 2/4

00:04:37

passed #7624390
igalia-rpi4
v3d-rpi4-gles3:armhf 3/4

00:05:30

passed #7624392
igalia-rpi4
v3d-rpi4-gles3:armhf 4/4

00:04:43

passed #7624396
igalia-rpi4
v3dv-rpi4-vk:armhf 1/6

00:06:39

passed #7624398
igalia-rpi4
v3dv-rpi4-vk:armhf 2/6

00:07:17

passed #7624400
igalia-rpi4
v3dv-rpi4-vk:armhf 3/6

00:07:10

passed #7624402
igalia-rpi4
v3dv-rpi4-vk:armhf 4/6

00:06:28

passed #7624404
igalia-rpi4
v3dv-rpi4-vk:armhf 5/6

00:06:45

passed #7624406
igalia-rpi4
v3dv-rpi4-vk:armhf 6/6

00:06:40

passed #7624374
igalia-rpi3
vc4-rpi3-gles2:armhf 1/4

00:05:22

passed #7624376
igalia-rpi3
vc4-rpi3-gles2:armhf 2/4

00:03:49

passed #7624378
igalia-rpi3
vc4-rpi3-gles2:armhf 3/4

00:04:29

passed #7624380
igalia-rpi3
vc4-rpi3-gles2:armhf 4/4

00:03:59

 
  Freedreno
passed #7624408
google-freedreno-db410c
a306_gles2

00:08:52

passed #7624410
google-freedreno-db410c
a306_gles3 1/3

00:08:33

passed #7624412
google-freedreno-db410c
a306_gles3 2/3

00:08:35

passed #7624414
google-freedreno-db410c
a306_gles3 3/3

00:08:41

passed #7624416
google-freedreno-db410c
a306_gles3_options

00:06:28

passed #7624418
google-freedreno-db820c
a530_gles2 1/2

00:07:43

passed #7624420
google-freedreno-db820c
a530_gles2 2/2

00:07:48

passed #7624422
google-freedreno-db820c
a530_gles3

00:07:24

passed #7624425
google-freedreno-db820c
a530_gles31

00:06:47

passed #7624433
google-freedreno-cheza
a630_gl

00:02:38

passed #7624427
google-freedreno-cheza
a630_gles2

00:02:44

passed #7624431
google-freedreno-cheza
a630_gles3

00:05:56

passed #7624429
google-freedreno-cheza
a630_gles31

00:05:00

passed #7624437
google-freedreno-cheza
a630_gles_asan

00:04:33

passed #7624435
google-freedreno-cheza
a630_gles_others

00:04:02

passed #7624447
google-freedreno-cheza
a630-traces

00:06:53

passed #7624440
google-freedreno-cheza
a630_vk 1/2

00:07:54

passed #7624442
google-freedreno-cheza
a630_vk 2/2

00:07:31

passed #7624444
google-freedreno-cheza
a630_vk_sysmem

00:02:15

 
  Software Renderer
passed #7624462
lavapipe-vk

00:06:55

passed #7624460
llvmpipe-gles2

00:01:58

passed #7624450
llvmpipe-piglit-cl

00:02:05

passed #7624454
llvmpipe-piglit-glslparser

00:05:20

passed #7624452
llvmpipe-piglit-quick_gl

00:08:27

passed #7624456
llvmpipe-piglit-quick_shader

00:08:17

passed #7624458
llvmpipe-traces

00:02:18

passed #7624472
softpipe-asan-gles31

00:03:51

passed #7624476
softpipe-gl

00:01:18

passed #7624464
softpipe-gles2

00:01:57

passed #7624466
softpipe-gles3

00:08:25

passed #7624468
softpipe-gles31 1/2

00:07:11

passed #7624470
softpipe-gles31 2/2

00:06:18

passed #7624474
softpipe-piglit-quick

00:11:33

 
  Layered Backends
passed #7624496
windows docker 1809 mesa
test-d3d12-windows

00:05:42

passed #7624486
virgl-gl30-on-gl

00:00:44

passed #7624488
virgl-gl31-on-gl

00:01:19

passed #7624490
virgl-gl32-on-gl

00:01:00

passed #7624478
virgl-gles2-on-gl

00:02:36

passed #7624482
virgl-gles31-on-gl 1/2

00:05:25

passed #7624484
virgl-gles31-on-gl 2/2

00:06:28

passed #7624480
virgl-gles3-on-gl

00:05:45

passed #7624491
virgl-traces

00:00:49

passed #7624495
zink-lvp-gl

00:00:51

passed #7624493
zink-lvp-gles2

00:02:06

passed #7624494
zink-lvp-gles3

00:01:26

passed #7624492
zink-piglit-quick_gl

00:03:05