intel/fs: Check if the whole ubo load range is in the push const range
authorSviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Thu, 7 Sep 2023 10:15:41 +0000 (13:15 +0300)
committerMarge Bot <emma+marge@anholt.net>
Fri, 15 Sep 2023 10:55:24 +0000 (10:55 +0000)
commitb1a63d5418f80d3db33f009d14729286f1877ce6
treed8e52e8584da0ae49ad6dbe02aa48a1f54bb6398
parent2bd86f804829c5ac24379ab46a1055940d02cbc7
intel/fs: Check if the whole ubo load range is in the push const range

Before this, we were checking only the beginning of the ubo range, so
partially overlapping loads were trying to load undefined data.

Fixes: b2da1238 ("i965: Use pushed UBO data in the scalar backend.")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9748
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25111>
src/intel/compiler/brw_fs_nir.cpp