etnaviv: nir: lower nir_texop_txs
authorChristian Gmeiner <cgmeiner@igalia.com>
Tue, 11 Jul 2023 13:46:55 +0000 (15:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 21 Jul 2023 08:52:03 +0000 (08:52 +0000)
commit5a952807487255cb8e3be6bc2eb66041f7f7785b
tree02d9cfd1043f2734b189a51e18df364bb6bc182c
parent88f399b6515787adbe6e396df85fb5659797cb00
etnaviv: nir: lower nir_texop_txs

Non of the GPU models know at this time have hardware support to
retrieve the dimensions of a level of a texture. Do almost the
same as the binary blob and store the needed values as uniforms.

Passes dEQP-GLES3.functional.shaders.texture_functions.texturesize.*

Signed-off-by: Christian Gmeiner <cgmeiner@igalia.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24217>
src/gallium/drivers/etnaviv/etnaviv_nir_lower_texture.c