mesa/st: Check deref modes in lower_builtin_instr
authorJason Ekstrand <jason.ekstrand@collabora.com>
Thu, 12 May 2022 19:07:30 +0000 (14:07 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 May 2022 22:51:38 +0000 (22:51 +0000)
commit46a49df7b6f8dac13ddb1e929c3fbdd41c91594f
tree3edd112653b473ec8ca2459c660fedf289412abf
parent627d58099c272cdb1dbcac9ad271555470acafb4
mesa/st: Check deref modes in lower_builtin_instr

This is a bit more robust and generally a better pattern as it works
even in the presence of incomplete deref chains on non-uniform variable
modes.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16482>
src/mesa/state_tracker/st_nir_lower_builtin.c