nir/opt_intrinsic: optimize gl_FragDepth = gl_FragCoord.z

gl_FragDepth default value is gl_FragCoord.z so if a shader does:

   gl_FragDepth = gl_FragCoord.z

we can drop this assignment.
135 jobs for !10697 with nir_discard_writes_to_fragdepth in 8 seconds (queued for 4 seconds)
latest detached
Status Job ID Name Coverage
  Sanity
passed #9588013
sanity

00:00:08

 
  Container
manual #9588016
aarch64 manual
arm_build
manual #9588017
windows shell 1809 mesa manual
windows_build_vs2019
manual #9588014
manual
x86_build-base
manual #9588015
manual
x86_test-base
 
  Container 2
created #9588022
android_build
created #9588019
i386_build
created #9588025
kernel+rootfs_amd64
created #9588026
aarch64
kernel+rootfs_arm64
created #9588027
aarch64
kernel+rootfs_armhf
created #9588020
ppc64el_build
created #9588021
s390x_build
created #9588018
x86_build
created #9588023
x86_test-gl
created #9588024
x86_test-vk
 
  Meson X86 64
created #9588033
meson-clang
created #9588034
meson-clover
created #9588030
meson-clover-testing
created #9588031
meson-gallium
created #9588032
meson-release
created #9588028
meson-testing
created #9588029
meson-testing-asan
created #9588035
meson-vulkan
 
  Build Misc
created #9588036
arm_test
created #9588037
meson-android
created #9588039
aarch64
meson-arm64
created #9588040
aarch64
meson-arm64-asan
created #9588041
aarch64
meson-arm64-build-test
created #9588038
aarch64
meson-armhf
created #9588043
meson-i386
created #9588046
meson-mingw32-x86_64
created #9588045
meson-ppc64el
created #9588044
kvm
meson-s390x
created #9588042
windows docker 1809 mesa
meson-windows-vs2019
 
  Amd
created #9588048
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles2:amd64
created #9588051
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64 1/2
created #9588052
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles31:amd64 2/2
created #9588049
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles3:amd64 1/2
created #9588050
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-gles3:amd64 2/2
created #9588054
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-piglit-gl:amd64
created #9588053
mesa-ci-aarch64-lava-collabora
radeonsi-stoney-traces:amd64
created #9588047
radv-fossils
 
  Intel
created #9588057
mesa-ci-aarch64-lava-collabora manual
iris-amly-traces:amd64
created #9588055
mesa-ci-aarch64-lava-collabora manual
iris-apl-traces:amd64
created #9588056
mesa-ci-aarch64-lava-collabora manual
iris-glk-traces:amd64
 
  Arm
created #9588066
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles2:arm64
created #9588069
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles31:arm64
created #9588067
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles3:arm64 1/2
created #9588068
mesa-ci-aarch64-lava-collabora
panfrost-g52-gles3:arm64 2/2
created #9588058
mesa-ci-aarch64-lava-collabora
panfrost-t720-gles2:arm64
created #9588059
mesa-ci-aarch64-lava-collabora
panfrost-t760-gles2:armhf
created #9588060
mesa-ci-aarch64-lava-collabora
panfrost-t760-traces:armhf
created #9588061
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles2:arm64
created #9588064
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles31:arm64
created #9588062
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 1/2
created #9588063
mesa-ci-aarch64-lava-collabora
panfrost-t860-gles3:arm64 2/2
created #9588065
mesa-ci-aarch64-lava-collabora
panfrost-t860-traces:arm64
 
  Broadcom
created #9588080
igalia-rpi4
v3d-rpi4-gles2:armhf
created #9588074
igalia-rpi4
v3d-rpi4-gles31:armhf 1/2
created #9588075
igalia-rpi4
v3d-rpi4-gles31:armhf 2/2
created #9588076
igalia-rpi4
v3d-rpi4-gles3:armhf 1/4
created #9588077
igalia-rpi4
v3d-rpi4-gles3:armhf 2/4
created #9588078
igalia-rpi4
v3d-rpi4-gles3:armhf 3/4
created #9588079
igalia-rpi4
v3d-rpi4-gles3:armhf 4/4
created #9588081
igalia-rpi4
v3dv-rpi4-vk:armhf 1/6
created #9588082
igalia-rpi4
v3dv-rpi4-vk:armhf 2/6
created #9588083
igalia-rpi4
v3dv-rpi4-vk:armhf 3/6
created #9588084
igalia-rpi4
v3dv-rpi4-vk:armhf 4/6
created #9588085
igalia-rpi4
v3dv-rpi4-vk:armhf 5/6
created #9588086
igalia-rpi4
v3dv-rpi4-vk:armhf 6/6
created #9588070
igalia-rpi3
vc4-rpi3-gles2:armhf 1/4
created #9588071
igalia-rpi3
vc4-rpi3-gles2:armhf 2/4
created #9588072
igalia-rpi3
vc4-rpi3-gles2:armhf 3/4
created #9588073
igalia-rpi3
vc4-rpi3-gles2:armhf 4/4
 
  Freedreno
created #9588087
google-freedreno-db410c
a306_gles2
created #9588088
google-freedreno-db410c
a306_gles3 1/3
created #9588089
google-freedreno-db410c
a306_gles3 2/3
created #9588090
google-freedreno-db410c
a306_gles3 3/3
created #9588091
google-freedreno-db410c
a306_gles3_options
created #9588092
google-freedreno-db410c
a306-traces
created #9588093
google-freedreno-db820c
a530_gles2
created #9588096
google-freedreno-db820c
a530_gles31 1/2
created #9588094
google-freedreno-db820c
a530_gles3 1/2
created #9588097
google-freedreno-db820c
a530_gles31 2/2
created #9588095
google-freedreno-db820c
a530_gles3 2/2
created #9588098
google-freedreno-db820c
a530_piglit_gl
created #9588099
google-freedreno-db820c
a530_piglit_shader
created #9588100
google-freedreno-db820c
a530-traces
created #9588105
google-freedreno-cheza
a630_egl
created #9588104
google-freedreno-cheza
a630_gl
created #9588101
google-freedreno-cheza
a630_gles2
created #9588103
google-freedreno-cheza
a630_gles3
created #9588102
google-freedreno-cheza
a630_gles31
created #9588106
google-freedreno-cheza
a630_gles_others
created #9588110
google-freedreno-cheza
a630_piglit
created #9588111
google-freedreno-cheza
a630-traces
created #9588107
google-freedreno-cheza
a630_vk 1/2
created #9588108
google-freedreno-cheza
a630_vk 2/2
created #9588109
google-freedreno-cheza
a630_vk_sysmem
 
  Software Renderer
created #9588134
lavapipe-nir-stress
created #9588133
lavapipe-vk
created #9588122
llvmpipe-egl
created #9588120
llvmpipe-gl
created #9588117
llvmpipe-gles2
created #9588118
llvmpipe-gles3
created #9588119
llvmpipe-gles31
created #9588121
llvmpipe-khr-gles2
created #9588112
llvmpipe-piglit-cl
created #9588114
llvmpipe-piglit-glslparser
created #9588113
llvmpipe-piglit-quick_gl
created #9588115
llvmpipe-piglit-quick_shader
created #9588116
llvmpipe-traces
created #9588130
softpipe-asan-gles31
created #9588132
softpipe-gl
created #9588123
softpipe-gles2
created #9588124
softpipe-gles3
created #9588125
softpipe-gles31 1/2
created #9588126
softpipe-gles31 2/2
created #9588127
softpipe-khr-gles2
created #9588128
softpipe-khr-gles3
created #9588129
softpipe-khr-gles31
created #9588131
softpipe-piglit-quick
 
  Layered Backends
created #9588147
windows docker 1809 mesa
test-d3d12-windows
created #9588139
virgl-gl30-on-gl
created #9588140
virgl-gl31-on-gl
created #9588141
virgl-gl32-on-gl
created #9588135
virgl-gles2-on-gl
created #9588137
virgl-gles31-on-gl 1/2
created #9588138
virgl-gles31-on-gl 2/2
created #9588136
virgl-gles3-on-gl
created #9588142
virgl-traces
created #9588146
zink-lvp-gl
created #9588144
zink-lvp-gles2
created #9588145
zink-lvp-gles3
created #9588143
zink-piglit-quick_gl