zink: handle texelFetchOffset with offsets
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 23 Jun 2020 19:14:34 +0000 (15:14 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 22 Jul 2020 14:01:29 +0000 (14:01 +0000)
commit2af22051c09eaef0f266d07269113e0122763792
tree0e69441960132efd950f9797a4b53dc382494e28
parent6587f41e115eb9cc5a6b853b8ff1c97e48029b7f
zink: handle texelFetchOffset with offsets

we need to explicitly add the offset in this case since it's not available
as a spirv param

fixes spec@glsl-1.30@execution@fs-texelfetchoffset-2d

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5911>
src/gallium/drivers/zink/nir_to_spirv/nir_to_spirv.c