pan/bi: Remove bi_load_sysval
authorAlyssa Rosenzweig <alyssa@collabora.com>
Mon, 6 Feb 2023 15:49:56 +0000 (10:49 -0500)
committerMarge Bot <emma+marge@anholt.net>
Thu, 23 Mar 2023 23:53:45 +0000 (23:53 +0000)
It is unused and should stay unused, as any use is a violation of Ekstrand's
rule.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20906>

src/panfrost/compiler/bifrost_compile.c

index 8a4b0eb..af3c295 100644 (file)
@@ -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)
 {