intel/fs: Allow constant-propagation into SAMPLEINFO and IMAGE_SIZE
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 2 Sep 2020 20:24:01 +0000 (15:24 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 14 Oct 2020 21:35:30 +0000 (21:35 +0000)
commitf8117f70519e0bb864fe1f324b7376a07fc0fe23
tree74b1f4f9d879b5afd1d662469e6e9a48afe9340f
parent438a409290afe10271a5b150c889c2563529b53e
intel/fs: Allow constant-propagation into SAMPLEINFO and IMAGE_SIZE

Without this, we end up with indirect sampler messages all the time
because we don't propagate the texture/image BTI.  This makes debugging
shaders with imageSize or textureSamples in them a pain.

Shader-db results on Ice Lake:

    total instructions in shared programs: 19720612 -> 19720564 (<.01%)
    instructions in affected programs: 4998 -> 4950 (-0.96%)
    helped: 12
    HURT: 0

All affected shaders were compute shaders in Deus Ex: Mankind Divided.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6794>
src/intel/compiler/brw_fs_copy_propagation.cpp