compiler/nir: check whether var is an input in lower_fragcoord_wtrans

Otherwise the lowering pass might try to lower any other load from
a deref if its data.location value happens to be zero.

Fixes: 418c4c0d
  compiler/nir: extend lower_fragcoord_wtrans to support VARYING_SLOT_POS

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <!10577>
114 jobs for !10577 with nir-fix-lower-fracoord-wtrans in 30 minutes and 40 seconds (queued for 8 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #9765297
sanity

00:00:10

 
  Container
passed #9765302
aarch64
arm_build

00:00:25

passed #9765304
windows shell 1809 mesa
windows_build_vs2019

00:00:11

passed #9765299
x86_build-base

00:00:19

passed #9765301
x86_test-base

00:00:20

 
  Container 2
passed #9765314
android_build

00:00:27

passed #9765309
i386_build

00:00:26

passed #9765320
kernel+rootfs_amd64

00:00:25

passed #9765322
aarch64
kernel+rootfs_arm64

00:00:11

passed #9765324
aarch64
kernel+rootfs_armhf

00:00:12

passed #9765311
ppc64el_build

00:00:26

passed #9765312
s390x_build

00:00:27

passed #9765307
x86_build

00:00:26

passed #9765316
x86_test-gl

00:00:25

passed #9765318
x86_test-vk

00:00:27

 
  Meson X86 64
passed #9765334
meson-clang

00:08:27

passed #9765336
meson-clover

00:01:51

passed #9765329
meson-clover-testing

00:03:06

passed #9765331
meson-gallium

00:05:16

passed #9765332
meson-release

00:03:35

passed #9765326
meson-testing

00:03:31

passed #9765327
meson-testing-asan

00:04:32

passed #9765337
meson-vulkan

00:03:06

 
  Build Misc
passed #9765339
arm_test

00:00:35

passed #9765341
meson-android

00:00:45

passed #9765345
aarch64
meson-arm64

00:02:14

passed #9765347
aarch64
meson-arm64-asan

00:03:53

passed #9765349
aarch64
meson-arm64-build-test

00:01:33

passed #9765343
aarch64
meson-armhf

00:01:32

passed #9765353
meson-i386

00:02:06

passed #9765359
meson-mingw32-x86_64

00:01:46

passed #9765357
meson-ppc64el

00:01:06

passed #9765355
kvm
meson-s390x

00:03:34

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

00:05:11

 
  Amd
passed #9765360
radv-fossils

00:09:01

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

00:07:04

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

00:09:47

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

00:10:01

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

00:09:27

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

00:09:57

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

00:08:18

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

00:08:50

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

00:07:40

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

00:07:28

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

00:07:24

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

00:07:36

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

00:07:32

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

00:07:38

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

00:04:16

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

00:04:03

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

00:04:23

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

00:04:04

failed #9765391
igalia-rpi4
v3dv-rpi4-vk:armhf 3/6

00:07:43

 
  Freedreno
passed #9765401
google-freedreno-db410c
a306_gles2

00:04:48

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

00:09:05

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

00:08:55

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

00:09:00

passed #9765411
google-freedreno-db410c
a306_gles3_options

00:03:48

passed #9765413
google-freedreno-db410c
a306-traces

00:08:01

passed #9765416
google-freedreno-db820c
a530_gles2

00:05:46

passed #9765423
google-freedreno-db820c
a530_gles31 1/2

00:05:20

passed #9765418
google-freedreno-db820c
a530_gles3 1/2

00:08:54

passed #9765425
google-freedreno-db820c
a530_gles31 2/2

00:07:20

passed #9765420
google-freedreno-db820c
a530_gles3 2/2

00:07:06

passed #9765428
google-freedreno-db820c
a530_piglit_gl

00:10:42

passed #9765430
google-freedreno-db820c
a530_piglit_shader

00:08:33

passed #9765432
google-freedreno-db820c
a530-traces

00:14:56

passed #9765443
google-freedreno-cheza
a630_egl

00:03:15

passed #9765442
google-freedreno-cheza
a630_gl

00:01:25

passed #9765435
google-freedreno-cheza
a630_gles2

00:01:36

passed #9765440
google-freedreno-cheza
a630_gles3

00:04:45

passed #9765437
google-freedreno-cheza
a630_gles31

00:03:56

passed #9765444
google-freedreno-cheza
a630_gles_others

00:02:40

passed #9765448
google-freedreno-cheza
a630_piglit

00:09:24

passed #9765449
google-freedreno-cheza
a630-traces

00:07:16

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

00:10:54

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

00:10:54

passed #9765447
google-freedreno-cheza
a630_vk_sysmem

00:02:08

 
  Software Renderer
passed #9765472
lavapipe-nir-stress

00:01:18

passed #9765471
lavapipe-vk

00:06:48

passed #9765460
llvmpipe-egl

00:01:08

passed #9765458
llvmpipe-gl

00:02:51

passed #9765455
llvmpipe-gles2

00:02:34

passed #9765456
llvmpipe-gles3

00:04:13

passed #9765457
llvmpipe-gles31

00:03:44

passed #9765459
llvmpipe-khr-gles2

00:00:32

passed #9765450
llvmpipe-piglit-cl

00:02:34

passed #9765452
llvmpipe-piglit-glslparser

00:04:24

passed #9765451
llvmpipe-piglit-quick_gl

00:06:36

passed #9765453
llvmpipe-piglit-quick_shader

00:04:42

passed #9765454
llvmpipe-traces

00:02:12

passed #9765468
softpipe-asan-gles31

00:01:42

passed #9765470
softpipe-gl

00:01:23

passed #9765461
softpipe-gles2

00:01:47

passed #9765462
softpipe-gles3

00:03:00

passed #9765463
softpipe-gles31 1/2

00:04:58

passed #9765464
softpipe-gles31 2/2

00:05:42

passed #9765465
softpipe-khr-gles2

00:00:41

passed #9765466
softpipe-khr-gles3

00:00:35

passed #9765467
softpipe-khr-gles31

00:00:41

passed #9765469
softpipe-piglit-quick

00:07:15

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

00:03:10

passed #9765477
virgl-gl30-on-gl

00:00:26

passed #9765478
virgl-gl31-on-gl

00:00:51

passed #9765479
virgl-gl32-on-gl

00:02:02

passed #9765473
virgl-gles2-on-gl

00:01:24

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

00:02:33

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

00:02:47

passed #9765474
virgl-gles3-on-gl

00:03:46

passed #9765480
virgl-traces

00:00:45

passed #9765484
zink-lvp-gl

00:01:59

passed #9765482
zink-lvp-gles2

00:03:06

passed #9765483
zink-lvp-gles3

00:02:19

passed #9765481
zink-piglit-quick_gl

00:04:13