agx: Implement nir_op_txb
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>
Tue, 18 Jan 2022 14:48:36 +0000 (09:48 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sun, 6 Feb 2022 15:02:39 +0000 (15:02 +0000)
commitb459473bb973d4593f0533a975984aa288e8e275
tree57123c49c1cd6f22c6d04d89419136b4f4a356df
parente2903f66ecad4c0ef899fd74c995a4174e88c00f
agx: Implement nir_op_txb

Like explicit LODs, biases must be 16-bit, so add a lowering rule for
this. With the LOD mode selection updated for txb, we can then ingest
biases like explicit LODs and allowlist txb. Passes:

dEQP-GLES2.functional.shaders.texture_functions.fragment.texture2d_bias
dEQP-GLES2.functional.texture.mipmap.2d.bias.*

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14899>
src/asahi/compiler/agx_compile.c