nir-to-tgsi: Avoid emitting TXL just for lod 0 on non-vertex shaders.

Prompted by comparing virgl fails and finding that it has issues with
immediate args to TXL/TXB, at least.

XXX: Could use a helper function for "does this stage have implicit LODs?"
to replace this and lower_tex's checks.
164 jobs for !8044 with st-glsl-ntt in 9 seconds (queued for 20 seconds)
detached
Status Job ID Name Coverage
  Sanity
passed sanity #12328461

00:00:09

 
  Container
manual debian/arm_build #12328466
aarch64 manual
manual debian/x86_build-base #12328463
manual
manual debian/x86_test-base #12328464
manual
manual fedora/x86_build #12328468
manual
manual windows_build_vs2019 #12328469
windows shell 1809 mesa manual
 
  Container 2
created debian/android_build #12328479
created debian/i386_build #12328474
created debian/ppc64el_build #12328476
created debian/s390x_build #12328477
created debian/x86_build #12328472
created debian/x86_test-gl #12328481
created debian/x86_test-vk #12328483
created kernel+rootfs_amd64 #12328484
created kernel+rootfs_arm64 #12328486
aarch64
created kernel+rootfs_armhf #12328488
aarch64
 
  Build X86 64
created debian-clang #12328500
created debian-clover #12328502
created debian-clover-testing #12328493
created debian-gallium #12328495
created debian-release #12328497
created debian-testing #12328490
created debian-testing-asan #12328492
created debian-vulkan #12328503
created fedora-release #12328498
 
  Build Misc
created debian-android #12328507
created debian-arm64 #12328510
aarch64
created debian-arm64-asan #12328512
aarch64
created debian-arm64-build-test #12328514
aarch64
created debian-armhf #12328508
aarch64
created debian/arm_test #12328505
created debian-i386 #12328519
created debian-mingw32-x86_64 #12328524
created debian-ppc64el #12328522
created debian-s390x #12328520
kvm
created windows-vs2019 #12328516
windows docker 1809 mesa
 
  Amd
created radeonsi-stoney-gles2:amd64 #12328534
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles31:amd64 1/2 #12328540
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles31:amd64 2/2 #12328542
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles3:amd64 1/2 #12328536
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles3:amd64 2/2 #12328538
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-piglit-gl:amd64 #12328546
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-traces:amd64 #12328544
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv-fossils #12328532
created radv_stoney_vkcts:amd64 1/3 #12328526
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv_stoney_vkcts:amd64 2/3 #12328528
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv_stoney_vkcts:amd64 3/3 #12328530
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
 
  Intel
created i915-g33-deqp #12328548
anholt-g33 manual
created i915-g33-khr-deqp #12328550
anholt-g33 manual
created i915-g33-piglit #12328552
anholt-g33 manual
created i915-g33-traces #12328554
anholt-g33 manual
created iris-apl-egl #12328564
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-gl #12328562
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral manual
created iris-apl-gles2 #12328556
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-gles3 #12328558
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-gles31 #12328560
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-traces #12328576
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-glk-egl #12328574
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gl #12328572
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gles2 #12328566
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gles3 #12328568
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-gles31 #12328570
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-glk-traces #12328579
mesa-ci-x86-64-lava-hp-x360-12b-n4000-octopus manual
created iris-kbl-traces #12328582
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
 
  Arm
created panfrost-g52-gles31:arm64 #12328608
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gles3:arm64 1/2 #12328603
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gles3:arm64 2/2 #12328606
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-t720-gles2:arm64 #12328584
mesa-ci-x86-64-lava-sun50i-h6-pine-h64
created panfrost-t760-gles2:armhf #12328587
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t760-traces:armhf #12328589
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t860-gles31:arm64 #12328597
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gles3:arm64 1/2 #12328592
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gles3:arm64 2/2 #12328595
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-traces:arm64 #12328600
mesa-ci-x86-64-lava-rk3399-gru-kevin
 
  Broadcom
created v3d-rpi4-egl:armhf #12328646
igalia-rpi4
created v3d-rpi4-gles2:armhf #12328641
igalia-rpi4
created v3d-rpi4-gles31:armhf 1/2 #12328626
igalia-rpi4
created v3d-rpi4-gles31:armhf 2/2 #12328629
igalia-rpi4
created v3d-rpi4-gles3:armhf 1/4 #12328631
igalia-rpi4
created v3d-rpi4-gles3:armhf 2/4 #12328634
igalia-rpi4
created v3d-rpi4-gles3:armhf 3/4 #12328637
igalia-rpi4
created v3d-rpi4-gles3:armhf 4/4 #12328640
igalia-rpi4
created v3d-rpi4-khr-gles2:armhf #12328645
igalia-rpi4
created v3d-rpi4-khr-gles31:armhf #12328643
igalia-rpi4
created v3d-rpi4-khr-gles3:armhf #12328644
igalia-rpi4
created v3d-rpi4-piglit:armhf 1/3 #12328647
igalia-rpi4
created v3d-rpi4-piglit:armhf 2/3 #12328648
igalia-rpi4
created v3d-rpi4-piglit:armhf 3/3 #12328649
igalia-rpi4
created v3dv-rpi4-vk:arm64 1/6 #12328650
igalia-rpi4
created v3dv-rpi4-vk:arm64 2/6 #12328651
igalia-rpi4
created v3dv-rpi4-vk:arm64 3/6 #12328652
igalia-rpi4
created v3dv-rpi4-vk:arm64 4/6 #12328653
igalia-rpi4
created v3dv-rpi4-vk:arm64 5/6 #12328654
igalia-rpi4
created v3dv-rpi4-vk:arm64 6/6 #12328655
igalia-rpi4
created vc4-rpi3-egl:armhf #12328624
igalia-rpi3
created vc4-rpi3-gles2:armhf 1/4 #12328611
igalia-rpi3
created vc4-rpi3-gles2:armhf 2/4 #12328613
igalia-rpi3
created vc4-rpi3-gles2:armhf 3/4 #12328616
igalia-rpi3
created vc4-rpi3-gles2:armhf 4/4 #12328619
igalia-rpi3
created vc4-rpi3-khr-gles2:armhf #12328621
igalia-rpi3
 
  Freedreno
created a306_gles2 #12328656
google-freedreno-db410c
created a306_gles3 1/3 #12328657
google-freedreno-db410c
created a306_gles3 2/3 #12328658
google-freedreno-db410c
created a306_gles3 3/3 #12328659
google-freedreno-db410c
created a306_gles3_options #12328660
google-freedreno-db410c
created a306-traces #12328661
google-freedreno-db410c
created a530_gles2 #12328662
google-freedreno-db820c
created a530_gles31 1/2 #12328665
google-freedreno-db820c
created a530_gles3 1/2 #12328663
google-freedreno-db820c
created a530_gles31 2/2 #12328666
google-freedreno-db820c
created a530_gles3 2/2 #12328664
google-freedreno-db820c
created a530_piglit_gl #12328667
google-freedreno-db820c manual
created a530_piglit_shader 1/2 #12328668
google-freedreno-db820c
created a530_piglit_shader 2/2 #12328669
google-freedreno-db820c
created a530-traces #12328670
google-freedreno-db820c
created a630_egl #12328675
google-freedreno-cheza
created a630_gl #12328674
google-freedreno-cheza
created a630_gles2 #12328671
google-freedreno-cheza
created a630_gles3 #12328673
google-freedreno-cheza
created a630_gles31 #12328672
google-freedreno-cheza
created a630_gles_others #12328676
google-freedreno-cheza
created a630_piglit #12328680
google-freedreno-cheza
created a630-traces #12328681
google-freedreno-cheza
created a630-traces-restricted #12328682
google-freedreno-cheza allowed to fail
created a630_vk 1/2 #12328677
google-freedreno-cheza
created a630_vk 2/2 #12328678
google-freedreno-cheza
created a630_vk_sysmem #12328679
google-freedreno-cheza
 
  Software Renderer
created lavapipe-nir-stress #12328705
created lavapipe-vk #12328704
created llvmpipe-egl #12328693
created llvmpipe-gl #12328691
created llvmpipe-gles2 #12328688
created llvmpipe-gles3 #12328689
created llvmpipe-gles31 #12328690
created llvmpipe-khr-gles2 #12328692
created llvmpipe-piglit-cl #12328683
created llvmpipe-piglit-glslparser #12328685
created llvmpipe-piglit-quick_gl #12328684
created llvmpipe-piglit-quick_shader #12328686
created llvmpipe-traces #12328687
created softpipe-asan-gles31 #12328701
created softpipe-gl #12328703
created softpipe-gles2 #12328694
created softpipe-gles3 #12328695
created softpipe-gles31 1/2 #12328696
created softpipe-gles31 2/2 #12328697
created softpipe-khr-gles2 #12328698
created softpipe-khr-gles3 #12328699
created softpipe-khr-gles31 #12328700
created softpipe-piglit-quick #12328702
 
  Layered Backends
created test-d3d12-windows #12328719
windows docker 1809 mesa
created virgl-gl30-on-gl #12328710
created virgl-gl31-on-gl #12328711
created virgl-gl32-on-gl #12328712
created virgl-gles2-on-gl #12328706
created virgl-gles31-on-gl 1/2 #12328708
created virgl-gles31-on-gl 2/2 #12328709
created virgl-gles3-on-gl #12328707
created virgl-traces #12328713
kvm
created zink-lvp-gl #12328718
created zink-lvp-gles2 #12328716
created zink-lvp-gles3 #12328717
created zink-piglit-no_timelines #12328715
created zink-piglit-timelines #12328714