nir, glsl: move pixel_center_integer/origin_upper_left to shader_info.fs

On GLSL that info is set as a layout qualifier when redeclaring
gl_FragCoord, so somehow tied to a specific variable. But in practice,
they behave as a global of the shader. On ARB programs they are set
using a global OPTION (defined at ARB_fragment_coord_conventions), and
on SPIR-V using ExecutionModes, that are also not tied specifically to
the builtin.

This patch moves that info from nir variable and ir variable to nir
shader and gl_program shader_info respectively, so the map is more
similar to SPIR-V, and ARB programs, instead of more similar to GLSL.

FWIW, shader_info.fs already had pixel_center_integer, so this change
also removes some redundancy. Also, as struct gl_program also includes
a shader_info, we removed gl_program::OriginUpperLeft and
PixelCenterInteger, as it would be superfluous.

This change was needed because recently spirv_to_nir changed the order
in which execution modes and variables are handled, so the variables
didn't get the correct values. Now the info is set on the shader
itself, and we don't need to go back to the builtin variable to set
it.

Fixes: e68871f6 ("spirv: Handle constants and types before execution
                   modes")

v2: (Jason)
   * glsl_to_nir: get the info before glsl_to_nir, while all the rest
     of the info gathering is happening
   * prog_to_nir: gather the info on a general info-gathering pass,
     not on variable setup.

v3: (Jason)
   * Squash with the patch that removes that info from ir variable
   * anv: assert that OriginUpperLeft is true. It should be already
     set by spirv_to_nir.
   * blorp: set origin_upper_left on its core "compile fragment
     shader", not just on some specific places (for this we added an
     helper on a previous patch).
   * prog_to_nir: no need to gather specifically this fragcoord modes
     as the full gl_program shader_info is copied.
   * spirv_to_nir: assert that we are a fragment shader when handling
     this execution modes.

v4: (reported by failing gitlab pipeline #18750)
   * state_tracker: update too due changes on ir.h/gl_program

v5:
   * blorp: minor change after change on previous patch
   * radeonsi: update due this change.
25 jobs for review/fix-fragment-execution-models in 29 minutes and 14 seconds (queued for 8 seconds)
Status Job ID Name Coverage
  Containers Build
passed #116811
containers:ubuntu

00:01:36

 
  Build+Test
passed #116826
build:make-gallium-drivers-other

00:11:49

passed #116825
build:make-gallium-drivers-radeonsi

00:06:05

passed #116824
build:make-gallium-drivers-swr

00:12:01

passed #116827
build:make-gallium-st-clover-llvm-39

00:07:40

passed #116828
build:make-gallium-st-clover-llvm-4

00:07:25

passed #116829
build:make-gallium-st-clover-llvm-5

00:06:32

passed #116830
build:make-gallium-st-clover-llvm-6

00:08:59

passed #116831
build:make-gallium-st-clover-llvm-7

00:08:20

passed #116832
build:make-gallium-st-other

00:08:15

passed #116823
build:make-loader-classic-dri

00:08:21

passed #116822
build:make-vulkan

00:06:08

passed #116818
build:meson-gallium-clover-llvm5

00:04:11

passed #116819
build:meson-gallium-clover-llvm6

00:05:21

passed #116820
build:meson-gallium-clover-llvm7

00:05:36

passed #116817
build:meson-gallium-drivers-other

00:03:48

passed #116816
build:meson-gallium-radeonsi

00:03:36

passed #116821
build:meson-gallium-st-other

00:04:22

passed #116815
build:meson-gallium-swr

00:08:35

passed #116814
build:meson-glvnd

00:04:15

passed #116813
build:meson-loader-classic-dri

00:04:27

passed #116812
build:meson-vulkan

00:03:21

passed #116834
build:scons-llvm

00:03:42

passed #116833
build:scons-nollvm

00:03:26

passed #116835
build:scons-swr

00:05:11