broadcom/compiler: handle textureGatherOffsets
authorIago Toral Quiroga <itoral@igalia.com>
Tue, 13 Jun 2023 08:34:33 +0000 (10:34 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 19 Jun 2023 08:13:06 +0000 (08:13 +0000)
There is a lowering in NIR for this so we just need to enable it.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23616>

src/broadcom/compiler/vir.c

index f32325b..e9d197a 100644 (file)
@@ -619,6 +619,7 @@ v3d_lower_nir(struct v3d_compile *c)
 {
         struct nir_lower_tex_options tex_options = {
                 .lower_txd = true,
+                .lower_tg4_offsets = true,
                 .lower_tg4_broadcom_swizzle = true,
 
                 .lower_rect = false, /* XXX: Use this on V3D 3.x */