From f2b56c8dd818a830a2142f8aa29b2914797e2c71 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 6 Feb 2023 10:49:56 -0500 Subject: [PATCH] pan/bi: Remove bi_load_sysval It is unused and should stay unused, as any use is a violation of Ekstrand's rule. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Boris Brezillon Part-of: --- src/panfrost/compiler/bifrost_compile.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/panfrost/compiler/bifrost_compile.c b/src/panfrost/compiler/bifrost_compile.c index 8a4b0eb872b..af3c2954c7e 100644 --- a/src/panfrost/compiler/bifrost_compile.c +++ b/src/panfrost/compiler/bifrost_compile.c @@ -708,15 +708,6 @@ bi_load_sysval_nir(bi_builder *b, nir_intrinsic_instr *intr, nr_components, offset); } -static bi_index -bi_load_sysval(bi_builder *b, int sysval, unsigned nr_components, - unsigned offset) -{ - bi_index tmp = bi_temp(b->shader); - bi_load_sysval_to(b, tmp, sysval, nr_components, offset); - return tmp; -} - static void bi_load_sample_id_to(bi_builder *b, bi_index dst) {