zink: lower LOD-invalid txf when imageRobustAccess2 is missing
authorSoroushIMG <soroush.kashani@imgtec.com>
Fri, 20 Jan 2023 17:00:56 +0000 (17:00 +0000)
committerMarge Bot <emma+marge@anholt.net>
Mon, 23 Jan 2023 15:16:01 +0000 (15:16 +0000)
commitf855e2fff64212edc34643b89921907975c0fbbd
treebbda5bb1ba57bd532e5d5a02028353983d3040a7
parent90d5e449ae00fc223304953831a1ff283d051de2
zink: lower LOD-invalid txf when imageRobustAccess2 is missing

GL robust buffer access applies to texelFetch with out of bounds LODs.
imageRobustAccess2 guarantees this, but imageRobustAccess does not.
Therefore, the txf robustness lowering pass from earlier is used
to provide this guarantee and support ARB/KHR robust_buffer_access_behavior.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20808>
src/gallium/drivers/zink/zink_compiler.c
src/gallium/drivers/zink/zink_context.c
src/gallium/drivers/zink/zink_program.c
src/gallium/drivers/zink/zink_screen.c
src/gallium/drivers/zink/zink_types.h