broadcom/compiler: v3d_nir_lower_txf_ms doesn't need v3d_compile
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 14 Jan 2023 22:12:48 +0000 (23:12 +0100)
committerMarge Bot <emma+marge@anholt.net>
Wed, 18 Jan 2023 13:09:57 +0000 (13:09 +0000)
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20744>

src/broadcom/compiler/v3d_compiler.h
src/broadcom/compiler/v3d_nir_lower_txf_ms.c
src/broadcom/compiler/vir.c

index 6817237..1ba1bb2 100644 (file)
@@ -1173,7 +1173,7 @@ bool v3d_nir_lower_logic_ops(nir_shader *s, struct v3d_compile *c);
 bool v3d_nir_lower_robust_buffer_access(nir_shader *s, struct v3d_compile *c);
 bool v3d_nir_lower_robust_image_access(nir_shader *s, struct v3d_compile *c);
 bool v3d_nir_lower_scratch(nir_shader *s);
-bool v3d_nir_lower_txf_ms(nir_shader *s, struct v3d_compile *c);
+bool v3d_nir_lower_txf_ms(nir_shader *s);
 bool v3d_nir_lower_image_load_store(nir_shader *s);
 bool v3d_nir_lower_load_store_bitsize(nir_shader *s);
 
index 44f11d4..4644578 100644 (file)
@@ -76,7 +76,7 @@ v3d_nir_lower_txf_ms_filter(const nir_instr *instr, const void *data)
 }
 
 bool
-v3d_nir_lower_txf_ms(nir_shader *s, struct v3d_compile *c)
+v3d_nir_lower_txf_ms(nir_shader *s)
 {
         return nir_shader_lower_instructions(s,
                                              v3d_nir_lower_txf_ms_filter,
index 9455090..c69f367 100644 (file)
@@ -1584,7 +1584,7 @@ v3d_attempt_compile(struct v3d_compile *c)
         }
 
         NIR_PASS(_, c->s, v3d_nir_lower_io, c);
-        NIR_PASS(_, c->s, v3d_nir_lower_txf_ms, c);
+        NIR_PASS(_, c->s, v3d_nir_lower_txf_ms);
         NIR_PASS(_, c->s, v3d_nir_lower_image_load_store);
 
         NIR_PASS(_, c->s, nir_opt_idiv_const, 8);