lima: Fix glFrontFace handling

Bit 12 of render->aux1 is GL_CCW/GL_CW. For GL_CCW (default of glFrontFace) we have
to set that bit active.

This is not what the blob does and what the original reverse engineering documentation
says. The blob sets this value inverted and does some bogus negation of the fragment
shaders gl_FrontFacing variable instead.

Anyway, doing it this way does not cause regressions but fixes
dEQP-GLES2.functional.shaders.builtin_variable.frontfacing and 4 piglit tests.

Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
189 jobs for lima-add-glFrontFace
Status Name Job ID Coverage
  Container
created debian/android_build #13852003
manual debian/arm_build #13852007
aarch64 manual
created debian/arm_test #13852012
created debian/i386_build #13852000
created debian/ppc64el_build #13852001
created debian/s390x_build #13852002
created debian/x86_build #13851999
manual debian/x86_build-base #13851998
manual
manual debian/x86_test-base #13852004
manual
created debian/x86_test-gl #13852005
created debian/x86_test-vk #13852006
manual fedora/x86_build #13852008
manual
created kernel+rootfs_amd64 #13852009
created kernel+rootfs_arm64 #13852010
aarch64
created kernel+rootfs_armhf #13852011
aarch64
manual windows_build_vs2019 #13852013
windows shell 1809 mesa manual
 
  Build X86 64
created debian-clang #13852020
created debian-clover #13852021
created debian-clover-testing #13852016
created debian-gallium #13852017
created debian-release #13852018
created debian-testing #13852014
created debian-testing-asan #13852015
created debian-vulkan #13852022
created fedora-release #13852019
 
  Build Misc
created debian-android #13852023
created debian-arm64 #13852025
aarch64
created debian-arm64-asan #13852026
aarch64
created debian-arm64-build-test #13852027
aarch64
created debian-armhf #13852024
aarch64
created debian-i386 #13852029
created debian-mingw32-x86_64 #13852032
created debian-ppc64el #13852031
created debian-s390x #13852030
kvm
created windows-vs2019 #13852028
windows docker 1809 mesa
 
  Amd
created radeonsi-stoney-gles2:amd64 #13852041
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles31:amd64 1/2 #13852044
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles31:amd64 2/2 #13852045
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles3:amd64 1/2 #13852042
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-gles3:amd64 2/2 #13852043
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-piglit-gl:amd64 #13852047
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radeonsi-stoney-traces:amd64 #13852046
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv-fossils #13852040
created radv-navy_flounder-traces #13852034
amdgpu:codename:NAVY_FLOUNDER manual
created radv-navy_flounder-vkd3d-proton #13852033
amdgpu:codename:NAVY_FLOUNDER manual
created radv_polaris10_vkcts #13852036
polaris10 manual
created radv-raven-traces #13852035
amdgpu:codename:RAVEN manual
created radv_stoney_vkcts:amd64 1/3 #13852037
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv_stoney_vkcts:amd64 2/3 #13852038
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
created radv_stoney_vkcts:amd64 3/3 #13852039
mesa-ci-x86-64-lava-hp-11A-G6-EE-grunt
 
  Intel
created i915-g33-deqp #13852048
anholt-g33 manual
created i915-g33-piglit #13852049
anholt-g33 manual
created i915-g33-traces #13852050
anholt-g33 manual
created iris-amly-deqp 1/3 #13852058
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-deqp 2/3 #13852059
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-deqp 3/3 #13852060
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-egl #13852067
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-piglit 1/3 #13852068
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-piglit 2/3 #13852069
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-piglit 3/3 #13852070
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-amly-traces #13852073
mesa-ci-x86-64-lava-asus-C433TA-AJ0005-rammus manual
created iris-apl-deqp 1/3 #13852051
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-deqp 2/3 #13852052
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-deqp 3/3 #13852053
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-egl #13852054
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-apl-traces #13852071
mesa-ci-x86-64-lava-asus-C523NA-A20057-coral
created iris-cml-deqp 1/2 #13852065
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual
created iris-cml-deqp 2/2 #13852066
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual
created iris-cml-traces #13852076
mesa-ci-x86-64-lava-asus-C436FA-flip-hatch manual
created iris-glk-deqp 1/2 #13852055
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-deqp 2/2 #13852056
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-egl #13852057
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-glk-traces #13852072
mesa-ci-x86-64-lava-hp-x360-12b-ca0010nr-n4020-octopus manual
created iris-kbl-deqp 1/3 #13852061
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-kbl-deqp 2/3 #13852062
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-kbl-deqp 3/3 #13852063
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-kbl-traces #13852074
mesa-ci-x86-64-lava-hp-x360-14-G1-sona manual
created iris-whl-deqp #13852064
mesa-ci-x86-64-lava-dell-latitude-5400-4305U-sarien manual
created iris-whl-traces #13852075
mesa-ci-x86-64-lava-dell-latitude-5400-4305U-sarien manual
 
  Arm
created lima-mali450-test:arm64 #13852077
mesa-ci-x86-64-lava-lima
created panfrost-g52-gl:arm64 1/3 #13852085
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gl:arm64 2/3 #13852086
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g52-gl:arm64 3/3 #13852087
mesa-ci-x86-64-lava-meson-g12b-a311d-khadas-vim3
created panfrost-g72-gl:arm64 1/3 #13852088
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16
created panfrost-g72-gl:arm64 2/3 #13852089
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16
created panfrost-g72-gl:arm64 3/3 #13852090
mesa-ci-x86-64-lava-mt8183-kukui-jacuzzi-juniper-sku16
created panfrost-t720-gles2:arm64 #13852078
mesa-ci-x86-64-lava-sun50i-h6-pine-h64
created panfrost-t760-gles2:armhf #13852079
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t760-traces:armhf #13852080
mesa-ci-x86-64-lava-rk3288-veyron-jaq
created panfrost-t860-gl:arm64 1/3 #13852081
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gl:arm64 2/3 #13852082
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-gl:arm64 3/3 #13852083
mesa-ci-x86-64-lava-rk3399-gru-kevin
created panfrost-t860-traces:arm64 #13852084
mesa-ci-x86-64-lava-rk3399-gru-kevin
 
  Broadcom
created v3d-rpi4-egl:armhf #13852108
igalia-rpi4
created v3d-rpi4-gles:armhf 1/8 #13852100
igalia-rpi4
created v3d-rpi4-gles:armhf 2/8 #13852101
igalia-rpi4
created v3d-rpi4-gles:armhf 3/8 #13852102
igalia-rpi4
created v3d-rpi4-gles:armhf 4/8 #13852103
igalia-rpi4
created v3d-rpi4-gles:armhf 5/8 #13852104
igalia-rpi4
created v3d-rpi4-gles:armhf 6/8 #13852105
igalia-rpi4
created v3d-rpi4-gles:armhf 7/8 #13852106
igalia-rpi4
created v3d-rpi4-gles:armhf 8/8 #13852107
igalia-rpi4
created v3d-rpi4-piglit:armhf 1/4 #13852109
igalia-rpi4
created v3d-rpi4-piglit:armhf 2/4 #13852110
igalia-rpi4
created v3d-rpi4-piglit:armhf 3/4 #13852111
igalia-rpi4
created v3d-rpi4-piglit:armhf 4/4 #13852112
igalia-rpi4
created v3dv-rpi4-vk:arm64 1/8 #13852113
igalia-rpi4
created v3dv-rpi4-vk:arm64 2/8 #13852114
igalia-rpi4
created v3dv-rpi4-vk:arm64 3/8 #13852115
igalia-rpi4
created v3dv-rpi4-vk:arm64 4/8 #13852116
igalia-rpi4
created v3dv-rpi4-vk:arm64 5/8 #13852117
igalia-rpi4
created v3dv-rpi4-vk:arm64 6/8 #13852118
igalia-rpi4
created v3dv-rpi4-vk:arm64 7/8 #13852119
igalia-rpi4
created v3dv-rpi4-vk:arm64 8/8 #13852120
igalia-rpi4
created vc4-rpi3-egl:armhf #13852093
igalia-rpi3
created vc4-rpi3-gles:armhf 1/2 #13852091
igalia-rpi3
created vc4-rpi3-gles:armhf 2/2 #13852092
igalia-rpi3
created vc4-rpi3-piglit-quick_gl:armhf 1/4 #13852094
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_gl:armhf 2/4 #13852095
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_gl:armhf 3/4 #13852096
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_gl:armhf 4/4 #13852097
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_shader:armhf 1/2 #13852098
igalia-rpi3 manual
created vc4-rpi3-piglit-quick_shader:armhf 2/2 #13852099
igalia-rpi3 manual
 
  Freedreno
created a306_gl 1/5 #13852121
google-freedreno-db410c
created a306_gl 2/5 #13852122
google-freedreno-db410c
created a306_gl 3/5 #13852123
google-freedreno-db410c
created a306_gl 4/5 #13852124
google-freedreno-db410c
created a306_gl 5/5 #13852125
google-freedreno-db410c
created a306-traces #13852126
google-freedreno-db410c
created a530_gl 1/5 #13852127
google-freedreno-db820c
created a530_gl 2/5 #13852128
google-freedreno-db820c
created a530_gl 3/5 #13852129
google-freedreno-db820c
created a530_gl 4/5 #13852130
google-freedreno-db820c
created a530_gl 5/5 #13852131
google-freedreno-db820c
created a530_piglit_gl #13852132
google-freedreno-db820c manual
created a530_piglit_shader 1/2 #13852133
google-freedreno-db820c
created a530_piglit_shader 2/2 #13852134
google-freedreno-db820c
created a530-traces #13852135
google-freedreno-db820c
created a630_egl #13852140
google-freedreno-cheza
created a630_gl 1/4 #13852136
google-freedreno-cheza
created a630_gl 2/4 #13852137
google-freedreno-cheza
created a630_gl 3/4 #13852138
google-freedreno-cheza
created a630_gl 4/4 #13852139
google-freedreno-cheza
created a630_gles_asan #13852141
google-freedreno-cheza manual
created a630_piglit #13852148
google-freedreno-cheza
created a630-traces #13852149
google-freedreno-cheza
created a630_vk 1/3 #13852142
google-freedreno-cheza
created a630_vk 2/3 #13852143
google-freedreno-cheza
created a630_vk 3/3 #13852144
google-freedreno-cheza
created a630_vk_asan #13852147
google-freedreno-cheza manual
created a630_vk_full 1/2 #13852145
google-freedreno-cheza manual
created a630_vk_full 2/2 #13852146
google-freedreno-cheza manual
 
  Etnaviv
created gc2000_gles2 #13852150
etnaviv-gc2000 manual
 
  Software Renderer
created lavapipe-nir-stress #13852165
created lavapipe-vk #13852164
created lavapipe-vk-asan #13852166
created llvmpipe-deqp 1/2 #13852156
created llvmpipe-deqp 2/2 #13852157
created llvmpipe-deqp-asan #13852158
created llvmpipe-egl #13852159
created llvmpipe-piglit-cl #13852151
created llvmpipe-piglit-glslparser #13852153
created llvmpipe-piglit-quick_gl #13852152
created llvmpipe-piglit-quick_shader #13852154
created llvmpipe-traces #13852155
created softpipe-asan-gles31 #13852162
created softpipe-deqp 1/2 #13852160
created softpipe-deqp 2/2 #13852161
created softpipe-piglit-quick #13852163
 
  Layered Backends
created test-d3d12-windows #13852185
windows docker 1809 mesa
created virgl-on-gl 1/6 #13852167
kvm
created virgl-on-gl 2/6 #13852168
kvm
created virgl-on-gl 3/6 #13852169
kvm
created virgl-on-gl 4/6 #13852170
kvm
created virgl-on-gl 5/6 #13852171
kvm
created virgl-on-gl 6/6 #13852172
kvm
created virgl-on-gles 1/6 #13852173
kvm manual
created virgl-on-gles 2/6 #13852174
kvm manual
created virgl-on-gles 3/6 #13852175
kvm manual
created virgl-on-gles 4/6 #13852176
kvm manual
created virgl-on-gles 5/6 #13852177
kvm manual
created virgl-on-gles 6/6 #13852178
kvm manual
created virgl-traces #13852179
kvm
created zink-lvp-deqp 1/2 #13852183
created zink-lvp-deqp 2/2 #13852184
created zink-piglit-lazy #13852182
created zink-piglit-no_timelines #13852181
created zink-piglit-timelines #13852180
 
  Deploy
manual test-docs #13852186
manual